public class FSTOrdTermsWriter extends FieldsConsumer
Files:
The .tix contains a list of FSTs, one for each field. The FST maps a term to its corresponding order in current field.
FST<long>CodecHeaderCodecFooterNotes:
The .tbk contains all the statistics and metadata for terms, along with field summary (e.g. per-field data like number of documents in current field). For each field, there are four blocks:
File Format:
CodecHeaderUint64VIntVLongCodecFooterNotes:
| Modifier and Type | Field and Description |
|---|---|
static int |
SKIP_INTERVAL |
static int |
TERMS_VERSION_CHECKSUM |
static int |
TERMS_VERSION_CURRENT |
static int |
TERMS_VERSION_START |
| Constructor and Description |
|---|
FSTOrdTermsWriter(SegmentWriteState state,
PostingsWriterBase postingsWriter) |
| Modifier and Type | Method and Description |
|---|---|
TermsConsumer |
addField(FieldInfo field)
Add a new field
|
void |
close()
Called when we are done adding everything.
|
mergepublic static final int TERMS_VERSION_START
public static final int TERMS_VERSION_CHECKSUM
public static final int TERMS_VERSION_CURRENT
public static final int SKIP_INTERVAL
public FSTOrdTermsWriter(SegmentWriteState state, PostingsWriterBase postingsWriter) throws IOException
IOExceptionpublic TermsConsumer addField(FieldInfo field) throws IOException
FieldsConsumeraddField in class FieldsConsumerIOExceptionpublic void close()
throws IOException
FieldsConsumerclose in interface Closeableclose in interface AutoCloseableclose in class FieldsConsumerIOExceptionCopyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.