Package org.apache.lucene.index
Class MergeState.CheckAbort
java.lang.Object
org.apache.lucene.index.MergeState.CheckAbort
- Enclosing class:
- MergeState
Class for recording units of work when merging segments.
-
Constructor Summary
ConstructorsConstructorDescriptionCheckAbort
(MergePolicy.OneMerge merge, Directory dir) Creates a #CheckAbort instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
work
(double units) Records the fact that roughly units amount of work have been done since this method was last called.
-
Constructor Details
-
CheckAbort
Creates a #CheckAbort instance.
-
-
Method Details
-
work
Records the fact that roughly units amount of work have been done since this method was last called. When adding time-consuming code into SegmentMerger, you should test different values for units to ensure that the time in between calls to merge.checkAborted is up to ~ 1 second.
-