Module io.fluxzero.javaclient
Class DefaultIndexOperation
java.lang.Object
io.fluxzero.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 newDefaultIndexOperationinstance for managing document indexing. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fluxzero.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 newDefaultIndexOperationinstance for managing document indexing.- Parameters:
documentStore- theDocumentStoreused 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:IndexOperationExecutes the indexing operation with the provided guarantee.- Specified by:
indexin interfaceIndexOperation
-
copy
Description copied from interface:IndexOperationCreates a deep copy of this operation, preserving all configured values.- Specified by:
copyin interfaceIndexOperation
-