C# 클래스 Lucene.Net.Index.MergePolicy.OneMerge

OneMerge provides the information necessary to perform an individual primitive merge operation, resulting in a single new segment. The merge spec includes the subset of segments to be merged as well as whether the new segment should use the compound file format.
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
EstimatedMergeBytes long
MaxNumSegments int
Segments IList
TotalDocCount int

Private Properties

프로퍼티 타입 설명
Abort void

공개 메소드들

메소드 설명
CheckAborted ( Directory dir ) : void

Called periodically by IndexWriter while merging to see if the merge is aborted.

GetDocMap ( Lucene.Net.Index.MergeState mergeState ) : DocMap

Expert: If #getMergeReaders() reorders document IDs, this method must be overridden to return a mapping from the natural doc ID (the doc ID that would result from a natural merge) to the actual doc ID. this mapping is used to apply deletions that happened during the merge to the new segment.

OneMerge ( IList segments ) : System

Sole constructor.

SegString ( Directory dir ) : string

Returns a readable description of the current merge state.

TotalBytesSize ( ) : long

Returns the total size in bytes of this merge. Note that this does not indicate the size of the merged segment, but the input total size. this is only set once the merge is initialized by IndexWriter.

TotalNumDocs ( ) : int

Returns the total number of documents that are included with this merge. Note that this does not indicate the number of documents after the merge.

비공개 메소드들

메소드 설명
Abort ( ) : void

Mark this merge as aborted. If this is called before the merge is committed then the merge will not be committed.

메소드 상세

CheckAborted() 공개 메소드

Called periodically by IndexWriter while merging to see if the merge is aborted.
public CheckAborted ( Directory dir ) : void
dir Directory
리턴 void

GetDocMap() 공개 메소드

Expert: If #getMergeReaders() reorders document IDs, this method must be overridden to return a mapping from the natural doc ID (the doc ID that would result from a natural merge) to the actual doc ID. this mapping is used to apply deletions that happened during the merge to the new segment.
public GetDocMap ( Lucene.Net.Index.MergeState mergeState ) : DocMap
mergeState Lucene.Net.Index.MergeState
리턴 DocMap

OneMerge() 공개 메소드

Sole constructor.
public OneMerge ( IList segments ) : System
segments IList List of s /// to be merged.
리턴 System

SegString() 공개 메소드

Returns a readable description of the current merge state.
public SegString ( Directory dir ) : string
dir Directory
리턴 string

TotalBytesSize() 공개 메소드

Returns the total size in bytes of this merge. Note that this does not indicate the size of the merged segment, but the input total size. this is only set once the merge is initialized by IndexWriter.
public TotalBytesSize ( ) : long
리턴 long

TotalNumDocs() 공개 메소드

Returns the total number of documents that are included with this merge. Note that this does not indicate the number of documents after the merge.
public TotalNumDocs ( ) : int
리턴 int

프로퍼티 상세

EstimatedMergeBytes 공개적으로 프로퍼티

Estimated size in bytes of the merged segment.
public long EstimatedMergeBytes
리턴 long

MaxNumSegments 공개적으로 프로퍼티

public int MaxNumSegments
리턴 int

Segments 공개적으로 프로퍼티

Segments to be merged.
public IList Segments
리턴 IList

TotalDocCount 공개적으로 프로퍼티

Number of documents in the merged segment.
public int TotalDocCount
리턴 int