Class DefaultIndexOperation

java.lang.Object
io.fluxcapacitor.javaclient.persisting.search.DefaultIndexOperation
All Implemented Interfaces:
IndexOperation

public class DefaultIndexOperation extends Object implements 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 Details

    • DefaultIndexOperation

      public DefaultIndexOperation(DocumentStore documentStore, @NonNull @NonNull Object object)
      Constructs a new DefaultIndexOperation instance for managing document indexing.
      Parameters:
      documentStore - the DocumentStore used to store and manage the index operations
      object - the object to be indexed, which will be analyzed and converted for storage
  • Method Details