public class STUniformSplitPostingsFormat extends UniformSplitPostingsFormat
PostingsFormat
based on the Uniform Split technique and supporting
Shared Terms.
Shared Terms means the terms of all fields are stored in the same block file, with multiple fields associated to one term (one block line). In the same way, the dictionary trie is also shared between all fields. This highly reduces the memory required by the field dictionary compared to having one separate dictionary per field.
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
static String |
TERMS_BLOCKS_EXTENSION
Extension of the file containing the terms blocks for each field and the fields metadata.
|
static String |
TERMS_DICTIONARY_EXTENSION
Extension of the file containing the terms dictionary (the FST "trie").
|
static int |
VERSION_CURRENT |
blockDecoder, blockEncoder, deltaNumLines, dictionaryOnHeap, targetNumBlockLines, VERSION_ENCODABLE_FIELDS_METADATA, VERSION_START
EMPTY
Modifier | Constructor and Description |
---|---|
|
STUniformSplitPostingsFormat()
Creates a
STUniformSplitPostingsFormat with default settings. |
|
STUniformSplitPostingsFormat(int targetNumBlockLines,
int deltaNumLines,
BlockEncoder blockEncoder,
BlockDecoder blockDecoder,
boolean dictionaryOnHeap) |
protected |
STUniformSplitPostingsFormat(String name,
int targetNumBlockLines,
int deltaNumLines,
BlockEncoder blockEncoder,
BlockDecoder blockDecoder,
boolean dictionaryOnHeap) |
Modifier and Type | Method and Description |
---|---|
protected FieldsProducer |
createUniformSplitTermsReader(PostingsReaderBase postingsReader,
SegmentReadState state,
BlockDecoder blockDecoder) |
protected FieldsConsumer |
createUniformSplitTermsWriter(PostingsWriterBase postingsWriter,
SegmentWriteState state,
int targetNumBlockLines,
int deltaNumLines,
BlockEncoder blockEncoder) |
fieldsConsumer, fieldsProducer
availablePostingsFormats, forName, getName, reloadPostingsFormats, toString
public static final String TERMS_DICTIONARY_EXTENSION
public static final String TERMS_BLOCKS_EXTENSION
public static final int VERSION_CURRENT
public static final String NAME
public STUniformSplitPostingsFormat()
STUniformSplitPostingsFormat
with default settings.public STUniformSplitPostingsFormat(int targetNumBlockLines, int deltaNumLines, BlockEncoder blockEncoder, BlockDecoder blockDecoder, boolean dictionaryOnHeap)
protected STUniformSplitPostingsFormat(String name, int targetNumBlockLines, int deltaNumLines, BlockEncoder blockEncoder, BlockDecoder blockDecoder, boolean dictionaryOnHeap)
protected FieldsConsumer createUniformSplitTermsWriter(PostingsWriterBase postingsWriter, SegmentWriteState state, int targetNumBlockLines, int deltaNumLines, BlockEncoder blockEncoder) throws IOException
createUniformSplitTermsWriter
in class UniformSplitPostingsFormat
IOException
protected FieldsProducer createUniformSplitTermsReader(PostingsReaderBase postingsReader, SegmentReadState state, BlockDecoder blockDecoder) throws IOException
createUniformSplitTermsReader
in class UniformSplitPostingsFormat
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.