Class CheckAbort
Class for recording units of work when merging segments.
Inheritance
System.Object
CheckAbort
Assembly: DistributedLucene.Net.dll
Syntax
public class CheckAbort : object
Constructors
Name | Description |
---|---|
CheckAbort(MergePolicy.OneMerge, Directory) | Creates a CheckAbort instance. |
Fields
Name | Description |
---|---|
NONE | If you use this: IW.Dispose(false) cannot abort your merge! @lucene.internal |
Methods
Name | Description |
---|---|
Work(Double) | Records the fact that roughly units amount of work have been done since this method was last called. When adding time-consuming code into Lucene.Net.Index.SegmentMerger, you should test different values for units to ensure that the time in between calls to merge.CheckAborted is up to ~ 1 second. |