C# Class Lucene.Net.Codecs.BlockTerms.VariableGapTermsIndexWriter

Selects index terms according to provided pluggable {@link IndexTermSelector}, and stores them in a prefix trie that's loaded entirely in RAM stored as an FST. This terms index only supports unsigned byte term sort order (unicode codepoint order when the bytes are UTF8). @lucene.experimental
Inheritance: Lucene.Net.Codecs.BlockTerms.TermsIndexWriterBase
Datei anzeigen Open project: paulirwin/lucene.net Class Usage Examples

Protected Properties

Property Type Description
Output IndexOutput

Public Methods

Method Description
AddField ( FieldInfo field, long termsFilePointer ) : FieldWriter
Dispose ( ) : void
VariableGapTermsIndexWriter ( SegmentWriteState state, IndexTermSelector policy ) : System

Protected Methods

Method Description
IndexedTermPrefixLength ( BytesRef priorTerm, BytesRef indexedTerm ) : int Note: If your codec does not sort in unicode code point order, you must override this method to simplly return IndexedTerm.Length

Private Methods

Method Description
WriteHeader ( IndexOutput output ) : void
WriteTrailer ( long dirStart ) : void

Method Details

AddField() public method

public AddField ( FieldInfo field, long termsFilePointer ) : FieldWriter
field FieldInfo
termsFilePointer long
return FieldWriter

Dispose() public method

public Dispose ( ) : void
return void

IndexedTermPrefixLength() protected method

Note: If your codec does not sort in unicode code point order, you must override this method to simplly return IndexedTerm.Length
protected IndexedTermPrefixLength ( BytesRef priorTerm, BytesRef indexedTerm ) : int
priorTerm BytesRef
indexedTerm BytesRef
return int

VariableGapTermsIndexWriter() public method

public VariableGapTermsIndexWriter ( SegmentWriteState state, IndexTermSelector policy ) : System
state SegmentWriteState
policy IndexTermSelector
return System

Property Details

Output protected_oe property

protected IndexOutput Output
return IndexOutput