C# Класс Lucene.Net.Codecs.Memory.DirectPostingsFormat

Wraps Lucene41PostingsFormat format for on-disk storage, but then at read time loads and stores all terms & postings directly in RAM as byte[], int[].

WARNING: This is exceptionally RAM intensive: it makes no effort to compress the postings data, storing terms as separate byte[] and postings as separate int[], but as a result it gives substantial increase in search performance.

This postings format supports TermsEnum#ord and TermsEnum#seekExact(long).

Because this holds all term bytes as a single byte[], you cannot have more than 2.1GB worth of term bytes in a single segment. @lucene.experimental

Наследование: PostingsFormat
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DirectPostingsFormat ( ) : System.Linq
DirectPostingsFormat ( int minSkipCount, int lowFreqCutoff ) : System.Linq

minSkipCount is how many terms in a row must have the same prefix before we put a skip pointer down. Terms with docFreq less than or equal lowFreqCutoff will use a single int[] to hold all docs, freqs, position and offsets; terms with higher docFreq will use separate arrays.

FieldsConsumer ( SegmentWriteState state ) : FieldsConsumer
FieldsProducer ( SegmentReadState state ) : FieldsProducer

Описание методов

DirectPostingsFormat() публичный Метод

public DirectPostingsFormat ( ) : System.Linq
Результат System.Linq

DirectPostingsFormat() публичный Метод

minSkipCount is how many terms in a row must have the same prefix before we put a skip pointer down. Terms with docFreq less than or equal lowFreqCutoff will use a single int[] to hold all docs, freqs, position and offsets; terms with higher docFreq will use separate arrays.
public DirectPostingsFormat ( int minSkipCount, int lowFreqCutoff ) : System.Linq
minSkipCount int
lowFreqCutoff int
Результат System.Linq

FieldsConsumer() публичный Метод

public FieldsConsumer ( SegmentWriteState state ) : FieldsConsumer
state SegmentWriteState
Результат FieldsConsumer

FieldsProducer() публичный Метод

public FieldsProducer ( SegmentReadState state ) : FieldsProducer
state SegmentReadState
Результат FieldsProducer