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
System.Object
SegmentInfos.FindSegmentsFile
Assembly: DistributedLucene.Net.dll
Syntax
public abstract class FindSegmentsFile : object
Constructors
Name | Description |
---|---|
FindSegmentsFile(Directory) | Sole constructor. |
Methods
Name | Description |
---|---|
DoBody(String) | Subclass must implement this. The assumption is an
|
Run() | Locate the most recent |
Run(IndexCommit) | Run DoBody(String) on the provided commit. |