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.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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