C# 클래스 Lucene.Net.Index.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.
파일 보기 프로젝트 열기: paulirwin/lucene.net

공개 메소드들

메소드 설명
Run ( ) : object

Locate the most recent {@code segments} file and run #doBody on it.

Run ( IndexCommit commit ) : object

Run #doBody on the provided commit.

보호된 메소드들

메소드 설명
DoBody ( string segmentFileName ) : object

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.

FindSegmentsFile ( Directory directory ) : System

Sole constructor.

메소드 상세

DoBody() 보호된 추상적인 메소드

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 abstract DoBody ( string segmentFileName ) : object
segmentFileName string
리턴 object

FindSegmentsFile() 보호된 메소드

Sole constructor.
protected FindSegmentsFile ( Directory directory ) : System
directory Directory
리턴 System

Run() 공개 메소드

Locate the most recent {@code segments} file and run #doBody on it.
public Run ( ) : object
리턴 object

Run() 공개 메소드

Run #doBody on the provided commit.
public Run ( IndexCommit commit ) : object
commit IndexCommit
리턴 object