Package org.codelibs.fess.ds.callback
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 TypeMethodDescriptionvoidcommit()Commits all pending index update operations to ensure data persistence.longReturns the total number of documents processed by this callback.longReturns the total execution time for index update operations.voidstore(DataStoreParams paramMap, Map<String, Object> dataMap) Stores a document in the search index with the specified parameters and data.
-
Method Details
-
store
Stores a document in the search index with the specified parameters and data.- Parameters:
paramMap- the data store parameters containing configuration and metadatadataMap- 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.
-