public class FixedGapTermsIndexWriter extends TermsIndexWriterBase
VariableGapTermsIndexWriter for a more memory efficient
terms index that does not support seeking by ord.| Modifier and Type | Class and Description |
|---|---|
private class |
FixedGapTermsIndexWriter.SimpleFieldWriter |
TermsIndexWriterBase.FieldWriter| Modifier and Type | Field and Description |
|---|---|
(package private) static int |
BLOCKSIZE |
(package private) static java.lang.String |
CODEC_NAME |
static int |
DEFAULT_TERM_INDEX_INTERVAL |
private java.util.List<FixedGapTermsIndexWriter.SimpleFieldWriter> |
fields |
protected IndexOutput |
out |
private int |
termIndexInterval |
(package private) static java.lang.String |
TERMS_INDEX_EXTENSION
Extension of terms index file
|
(package private) static int |
VERSION_CURRENT |
(package private) static int |
VERSION_START |
| 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.
|
private void |
writeTrailer(long dirStart) |
protected IndexOutput out
static final java.lang.String TERMS_INDEX_EXTENSION
static final java.lang.String CODEC_NAME
static final int VERSION_START
static final int VERSION_CURRENT
static final int BLOCKSIZE
private final int termIndexInterval
public static final int DEFAULT_TERM_INDEX_INTERVAL
private final java.util.List<FixedGapTermsIndexWriter.SimpleFieldWriter> fields
public FixedGapTermsIndexWriter(SegmentWriteState state) throws java.io.IOException
java.io.IOExceptionpublic FixedGapTermsIndexWriter(SegmentWriteState state, int termIndexInterval) throws java.io.IOException
java.io.IOExceptionpublic TermsIndexWriterBase.FieldWriter addField(FieldInfo field, long termsFilePointer)
addField in class TermsIndexWriterBaseprotected int indexedTermPrefixLength(BytesRef priorTerm, BytesRef indexedTerm)
public void close()
throws java.io.IOException
java.io.IOExceptionprivate void writeTrailer(long dirStart)
throws java.io.IOException
java.io.IOException