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>
IndexHeader
CodecFooter
Notes:
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:
IndexHeader
Uint64
VInt
VLong
CodecFooter
Notes:
Modifier and Type | Class and Description |
---|---|
private static class |
FSTOrdTermsWriter.FieldMetaData |
(package private) class |
FSTOrdTermsWriter.TermsWriter |
Modifier and Type | Field and Description |
---|---|
(package private) IndexOutput |
blockOut |
(package private) FieldInfos |
fieldInfos |
(package private) java.util.List<FSTOrdTermsWriter.FieldMetaData> |
fields |
(package private) IndexOutput |
indexOut |
(package private) int |
maxDoc |
(package private) PostingsWriterBase |
postingsWriter |
static int |
SKIP_INTERVAL |
(package private) static java.lang.String |
TERMS_BLOCK_EXTENSION |
(package private) static java.lang.String |
TERMS_CODEC_NAME |
(package private) static java.lang.String |
TERMS_INDEX_CODEC_NAME |
(package private) static java.lang.String |
TERMS_INDEX_EXTENSION |
static int |
VERSION_CURRENT |
static int |
VERSION_START |
Constructor and Description |
---|
FSTOrdTermsWriter(SegmentWriteState state,
PostingsWriterBase postingsWriter) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
write(Fields fields,
NormsProducer norms)
Write all fields, terms and postings.
|
private void |
writeTrailer(IndexOutput out,
long dirStart) |
merge
static final java.lang.String TERMS_INDEX_EXTENSION
static final java.lang.String TERMS_BLOCK_EXTENSION
static final java.lang.String TERMS_CODEC_NAME
static final java.lang.String TERMS_INDEX_CODEC_NAME
public static final int VERSION_START
public static final int VERSION_CURRENT
public static final int SKIP_INTERVAL
final PostingsWriterBase postingsWriter
final FieldInfos fieldInfos
final int maxDoc
final java.util.List<FSTOrdTermsWriter.FieldMetaData> fields
IndexOutput blockOut
IndexOutput indexOut
public FSTOrdTermsWriter(SegmentWriteState state, PostingsWriterBase postingsWriter) throws java.io.IOException
java.io.IOException
public void write(Fields fields, NormsProducer norms) throws java.io.IOException
FieldsConsumer
Notes:
write
in class FieldsConsumer
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class FieldsConsumer
java.io.IOException
private void writeTrailer(IndexOutput out, long dirStart) throws java.io.IOException
java.io.IOException