C# 클래스 Lucene.Net.Index.IndexCommit

Expert: represents a single commit into an index as seen by the {@link IndexDeletionPolicy} or {@link IndexReader}.

Changes to the content of an index are made visible only after the writer who made that change commits by writing a new segments file (segments_N). This point in time, when the action of writing of a new segments file to the directory is completed, is an index commit.

Each index commit point has a unique segments file associated with it. The segments file associated with a later index commit point would have a larger N.

WARNING: This API is a new and experimental and may suddenly change.

상속: IndexCommitPoint
파일 보기 프로젝트 열기: synhershko/lucene.net 1 사용 예제들

공개 메소드들

메소드 설명
Delete ( ) : void

Delete this commit point. This only applies when using the commit point in the context of IndexWriter's IndexDeletionPolicy.

Upon calling this, the writer is notified that this commit point should be deleted.

Decision that a commit-point should be deleted is taken by the IndexDeletionPolicy in effect and therefore this should only be called by its IndexDeletionPolicy.OnInit(System.Collections.IList) or IndexDeletionPolicy.OnCommit(System.Collections.IList) methods.

Equals ( System other ) : bool

Two IndexCommits are equal if both their Directory and versions are equal.

GetHashCode ( ) : int

메소드 상세

Delete() 공개 추상적인 메소드

Delete this commit point. This only applies when using the commit point in the context of IndexWriter's IndexDeletionPolicy.

Upon calling this, the writer is notified that this commit point should be deleted.

Decision that a commit-point should be deleted is taken by the IndexDeletionPolicy in effect and therefore this should only be called by its IndexDeletionPolicy.OnInit(System.Collections.IList) or IndexDeletionPolicy.OnCommit(System.Collections.IList) methods.

public abstract Delete ( ) : void
리턴 void

Equals() 공개 메소드

Two IndexCommits are equal if both their Directory and versions are equal.
public Equals ( System other ) : bool
other System
리턴 bool

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int