Class DefaultIndexOperation
java.lang.Object
io.fluxcapacitor.javaclient.persisting.search.DefaultIndexOperation
- All Implemented Interfaces:
IndexOperation
Default implementation of the
IndexOperation
interface.
This class provides a mutable, builder-style implementation for preparing and executing document indexing operations
using a DocumentStore
.
Instances of this class are typically created by calling DocumentStore.prepareIndex(Object)
. Upon
construction, the document ID, collection name, and timestamps are automatically extracted from the object's class
using reflection.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultIndexOperation
(DocumentStore documentStore, @NonNull Object object) Constructs a newDefaultIndexOperation
instance for managing document indexing. -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Creates a deep copy of this operation, preserving all configured values.Executes the indexing operation with the provided guarantee.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.fluxcapacitor.javaclient.persisting.search.IndexOperation
addMetadata, addMetadata, addMetadata, collection, end, end, id, id, ifNotExists, ifNotExists, index, indexAndForget, indexAndWait, indexAndWait, metadata, metadata, period, start, start, timestamp
-
Constructor Details
-
DefaultIndexOperation
Constructs a newDefaultIndexOperation
instance for managing document indexing.- Parameters:
documentStore
- theDocumentStore
used to store and manage the index operationsobject
- the object to be indexed, which will be analyzed and converted for storage
-
-
Method Details
-
index
Description copied from interface:IndexOperation
Executes the indexing operation with the provided guarantee.- Specified by:
index
in interfaceIndexOperation
-
copy
Description copied from interface:IndexOperation
Creates a deep copy of this operation, preserving all configured values.- Specified by:
copy
in interfaceIndexOperation
-