public class VariableGapTermsIndexWriter extends TermsIndexWriterBase
VariableGapTermsIndexWriter.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).Modifier and Type | Class and Description |
---|---|
static class |
VariableGapTermsIndexWriter.EveryNOrDocFreqTermSelector
Sets an index term when docFreq >= docFreqThresh, or
every interval terms.
|
static class |
VariableGapTermsIndexWriter.EveryNTermSelector
Same policy as
FixedGapTermsIndexWriter |
static class |
VariableGapTermsIndexWriter.IndexTermSelector
Hook for selecting which terms should be placed in the terms index.
|
TermsIndexWriterBase.FieldWriter
Modifier and Type | Field and Description |
---|---|
protected IndexOutput |
out |
Constructor and Description |
---|
VariableGapTermsIndexWriter(SegmentWriteState state,
VariableGapTermsIndexWriter.IndexTermSelector policy) |
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 VariableGapTermsIndexWriter(SegmentWriteState state, VariableGapTermsIndexWriter.IndexTermSelector policy) throws IOException
IOException
public TermsIndexWriterBase.FieldWriter addField(FieldInfo field, long termsFilePointer) throws IOException
addField
in class TermsIndexWriterBase
IOException
protected int indexedTermPrefixLength(BytesRef priorTerm, BytesRef indexedTerm)
public void close() throws IOException
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.