Package org.apache.lucene.index
Interface IndexWriterEventListener
public interface IndexWriterEventListener
A callback event listener for recording key events happened inside IndexWriter
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final IndexWriterEventListener
A no-op listener that helps to save null checks -
Method Summary
Modifier and TypeMethodDescriptionvoid
Invoked at the start of merge on commitvoid
Invoked at the end of merge on commit, due to either merge completed, or merge timed out according toIndexWriterConfig.setMaxFullFlushMergeWaitMillis(long)
-
Field Details
-
NO_OP_LISTENER
A no-op listener that helps to save null checks
-
-
Method Details
-
beginMergeOnFullFlush
Invoked at the start of merge on commit- Parameters:
merge
- specification to be tracked
-
endMergeOnFullFlush
Invoked at the end of merge on commit, due to either merge completed, or merge timed out according toIndexWriterConfig.setMaxFullFlushMergeWaitMillis(long)
- Parameters:
merge
- specification to be tracked
-