public class FSTTermsWriter extends FieldsConsumer
File:
The .tst contains a list of FSTs, one for each field. The FST maps a term to its corresponding statistics (e.g. docfreq) and metadata (e.g. information for postings list reader like file pointer to postings list).
Typically the metadata is separated into two parts:
FST<TermData>IndexHeaderUint64VIntVLongNotes:
| Modifier and Type | Field and Description |
|---|---|
static int |
TERMS_VERSION_CURRENT |
static int |
TERMS_VERSION_START |
| Constructor and Description |
|---|
FSTTermsWriter(SegmentWriteState state,
PostingsWriterBase postingsWriter) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
write(Fields fields)
Write all fields, terms and postings.
|
mergepublic static final int TERMS_VERSION_START
public static final int TERMS_VERSION_CURRENT
public FSTTermsWriter(SegmentWriteState state, PostingsWriterBase postingsWriter) throws IOException
IOExceptionpublic void write(Fields fields) throws IOException
FieldsConsumerNotes:
write in class FieldsConsumerIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FieldsConsumerIOExceptionCopyright © 2000–2015 The Apache Software Foundation. All rights reserved.