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>
CodecHeader
Uint64
VInt
VLong
Notes:
Modifier and Type | Field and Description |
---|---|
static int |
TERMS_VERSION_CHECKSUM |
static int |
TERMS_VERSION_CURRENT |
static int |
TERMS_VERSION_START |
Constructor and Description |
---|
FSTTermsWriter(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.
|
merge
public static final int TERMS_VERSION_START
public static final int TERMS_VERSION_CHECKSUM
public static final int TERMS_VERSION_CURRENT
public FSTTermsWriter(SegmentWriteState state, PostingsWriterBase postingsWriter) throws IOException
IOException
public TermsConsumer addField(FieldInfo field) throws IOException
FieldsConsumer
addField
in class FieldsConsumer
IOException
public void close() throws IOException
FieldsConsumer
close
in interface Closeable
close
in interface AutoCloseable
close
in class FieldsConsumer
IOException
Copyright © 2000-2016 The Apache Software Foundation. All Rights Reserved.