Interface IndexUpdateCallback

All Known Implementing Classes:
FileListIndexUpdateCallbackImpl, IndexUpdateCallbackImpl

public interface IndexUpdateCallback
Callback interface for handling index update operations during data store processing. This interface provides methods for storing documents, tracking processing metrics, and committing changes to the search index.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Commits all pending index update operations to ensure data persistence.
    long
    Returns the total number of documents processed by this callback.
    long
    Returns the total execution time for index update operations.
    void
    store(DataStoreParams paramMap, Map<String,Object> dataMap)
    Stores a document in the search index with the specified parameters and data.
  • Method Details

    • store

      void store(DataStoreParams paramMap, Map<String,Object> dataMap)
      Stores a document in the search index with the specified parameters and data.
      Parameters:
      paramMap - the data store parameters containing configuration and metadata
      dataMap - the document data to be indexed as key-value pairs
    • getDocumentSize

      long getDocumentSize()
      Returns the total number of documents processed by this callback.
      Returns:
      the document count
    • getExecuteTime

      long getExecuteTime()
      Returns the total execution time for index update operations.
      Returns:
      the execution time in milliseconds
    • commit

      void commit()
      Commits all pending index update operations to ensure data persistence. This method should be called after all documents have been stored.