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 |
---|---|
protected IndexOutput |
out |
Constructor and Description |
---|
FixedGapTermsIndexWriter(SegmentWriteState state) |
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 final IndexOutput out
public FixedGapTermsIndexWriter(SegmentWriteState state) 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-2013 Apache Software Foundation. All Rights Reserved.