public class FixedGapTermsIndexWriter extends TermsIndexWriterBase
VariableGapTermsIndexWriter
for a more memory efficient
terms index that does not support seeking by ord.TermsIndexWriterBase.FieldWriter
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TERM_INDEX_INTERVAL |
protected IndexOutput |
out |
Constructor and Description |
---|
FixedGapTermsIndexWriter(SegmentWriteState state) |
FixedGapTermsIndexWriter(SegmentWriteState state,
int termIndexInterval) |
Modifier and Type | Method and Description |
---|---|
TermsIndexWriterBase.FieldWriter |
addField(FieldInfo field,
long termsFilePointer) |
void |
close() |
protected int |
indexedTermPrefixLength(BytesRef priorTerm,
BytesRef indexedTerm)
NOTE: if your codec does not sort in unicode code
point order, you must override this method, to simply
return indexedTerm.length.
|
protected IndexOutput out
public static final int DEFAULT_TERM_INDEX_INTERVAL
public FixedGapTermsIndexWriter(SegmentWriteState state) throws IOException
IOException
public FixedGapTermsIndexWriter(SegmentWriteState state, int termIndexInterval) throws IOException
IOException
public TermsIndexWriterBase.FieldWriter addField(FieldInfo field, long termsFilePointer)
addField
in class TermsIndexWriterBase
protected int indexedTermPrefixLength(BytesRef priorTerm, BytesRef indexedTerm)
public void close() throws IOException
IOException
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.