Class SegmentInfos.FindSegmentsFile
Utility class for executing code that needs to do
something with the current segments file. This is
necessary with lock-less commits because from the time
you locate the current segments file name, until you
actually open it, read its contents, or check modified
time, etc., it could have been deleted due to a writer
commit finishing.
Inheritance
SegmentInfos.FindSegmentsFile
Assembly: Lucene.Net.dll
Syntax
public abstract class SegmentInfos.FindSegmentsFile
Constructors
FindSegmentsFile(Directory)
Declaration
protected FindSegmentsFile(Directory directory)
Parameters
Methods
DoBody(string)
Subclass must implement this. The assumption is an
IOException will be thrown if something goes wrong
during the processing that could have been caused by
a writer committing.
Declaration
protected abstract object DoBody(string segmentFileName)
Parameters
Type |
Name |
Description |
string |
segmentFileName |
|
Returns
Run()
Declaration
public virtual object Run()
Returns
Run(IndexCommit)
Declaration
public virtual object Run(IndexCommit commit)
Parameters
Returns