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 | Field and Description |
---|---|
static int |
SKIP_INTERVAL |
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.
|
merge
public static final int VERSION_START
public static final int VERSION_CURRENT
public static final int SKIP_INTERVAL
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
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.