C# Class Lucene.Net.Index.SegmentMerger.CheckAbort

Datei anzeigen Open project: synhershko/lucene.net Class Usage Examples

Public Methods

Method Description
CheckAbort ( MergePolicy merge, Lucene.Net.Store.Directory dir ) : System
Work ( double units ) : void

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.

Method Details

CheckAbort() public method

public CheckAbort ( MergePolicy merge, Lucene.Net.Store.Directory dir ) : System
merge MergePolicy
dir Lucene.Net.Store.Directory
return System

Work() public method

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.
public Work ( double units ) : void
units double
return void