Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Public Member Functions | Protected Member Functions | List of all members
Lucene.Net.Index.SegmentInfos.FindSegmentsFile Class Referenceabstract

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. More...

Inherited by Lucene.Net.Index.DirectoryReader.AnonymousClassFindSegmentsFile, Lucene.Net.Index.DirectoryReader.AnonymousClassFindSegmentsFile1, Lucene.Net.Index.DirectoryReader.AnonymousFindSegmentsFile, Lucene.Net.Index.IndexReader.AnonymousClassFindSegmentsFile, and Lucene.Net.Index.SegmentInfos.AnonymousClassFindSegmentsFile.

Public Member Functions

System.Object Run ()
 
System.Object Run (IndexCommit commit)
 
abstract System.Object DoBody (System.String segmentFileName)
 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.
 

Protected Member Functions

 FindSegmentsFile (Directory directory)
 

Detailed Description

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.

Definition at line 565 of file SegmentInfos.cs.

Constructor & Destructor Documentation

Lucene.Net.Index.SegmentInfos.FindSegmentsFile.FindSegmentsFile ( Directory  directory)
protected

Definition at line 570 of file SegmentInfos.cs.

Member Function Documentation

abstract System.Object Lucene.Net.Index.SegmentInfos.FindSegmentsFile.DoBody ( System.String  segmentFileName)
pure virtual

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.

System.Object Lucene.Net.Index.SegmentInfos.FindSegmentsFile.Run ( )

Definition at line 575 of file SegmentInfos.cs.

System.Object Lucene.Net.Index.SegmentInfos.FindSegmentsFile.Run ( IndexCommit  commit)

Definition at line 580 of file SegmentInfos.cs.


The documentation for this class was generated from the following file: