C# Class 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

Inheritance: PostingsFormat
Show file Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
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

Method Details

DirectPostingsFormat() public method

public DirectPostingsFormat ( ) : System.Linq
return System.Linq

DirectPostingsFormat() public method

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
return System.Linq

FieldsConsumer() public method

public FieldsConsumer ( SegmentWriteState state ) : FieldsConsumer
state SegmentWriteState
return FieldsConsumer

FieldsProducer() public method

public FieldsProducer ( SegmentReadState state ) : FieldsProducer
state SegmentReadState
return FieldsProducer