Class CheckAbort
Class for recording units of work when merging segments.
Inheritance
System.Object
CheckAbort
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
public class CheckAbort
Constructors
| Improve this Doc View SourceCheckAbort(MergePolicy.OneMerge, Directory)
Creates a CheckAbort instance.
Declaration
public CheckAbort(MergePolicy.OneMerge merge, Directory dir)
Parameters
Type | Name | Description |
---|---|---|
MergePolicy.OneMerge | merge | |
Directory | dir |
Fields
| Improve this Doc View SourceNONE
If you use this: IW.Dispose(false) cannot abort your merge!
This is a Lucene.NET INTERNAL API, use at your own risk
Declaration
public static readonly CheckAbort NONE
Field Value
Type | Description |
---|---|
CheckAbort |
Methods
| Improve this Doc View SourceWork(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.
Declaration
public virtual void Work(double units)
Parameters
Type | Name | Description |
---|---|---|
System.Double | units |