Class STUniformSplitTermsReader
- java.lang.Object
-
- org.apache.lucene.index.Fields
-
- org.apache.lucene.codecs.FieldsProducer
-
- org.apache.lucene.codecs.uniformsplit.UniformSplitTermsReader
-
- org.apache.lucene.codecs.uniformsplit.sharedterms.STUniformSplitTermsReader
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.lang.Iterable<java.lang.String>,Accountable
public class STUniformSplitTermsReader extends UniformSplitTermsReader
A block-based terms index and dictionary based on the Uniform Split technique, and sharing all the fields terms in the same dictionary, with all the fields of a term in the same block line.- See Also:
STUniformSplitTermsWriter
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.codecs.uniformsplit.UniformSplitTermsReader
blockInput, dictionaryInput, fieldToTermsMap, postingsReader, sortedFieldNames, version
-
Fields inherited from class org.apache.lucene.index.Fields
EMPTY_ARRAY
-
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
-
Constructor Summary
Constructors Modifier Constructor Description STUniformSplitTermsReader(PostingsReaderBase postingsReader, SegmentReadState state, BlockDecoder blockDecoder, boolean dictionaryOnHeap)protectedSTUniformSplitTermsReader(PostingsReaderBase postingsReader, SegmentReadState state, BlockDecoder blockDecoder, boolean dictionaryOnHeap, FieldMetadata.Serializer fieldMetadataReader, java.lang.String codecName, int versionStart, int versionCurrent, java.lang.String termsBlocksExtension, java.lang.String dictionaryExtension)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FieldMetadatacreateUnionFieldMetadata(java.lang.Iterable<FieldMetadata> fieldMetadataIterable)Creates a virtualFieldMetadatathat is the union of the givenFieldMetadatas.protected voidfillFieldMap(PostingsReaderBase postingsReader, SegmentReadState state, BlockDecoder blockDecoder, boolean dictionaryOnHeap, IndexInput dictionaryInput, IndexInput blockInput, java.util.Collection<FieldMetadata> fieldMetadataCollection, FieldInfos fieldInfos)protected longgetTermsRamBytesUsed()-
Methods inherited from class org.apache.lucene.codecs.uniformsplit.UniformSplitTermsReader
checkIntegrity, close, createDictionaryBrowserSupplier, iterator, ramBytesUsed, readEncodedFieldsMetadata, readFieldsMetadata, readUnencodedFieldsMetadata, seekFieldsMetadata, size, terms
-
Methods inherited from class org.apache.lucene.codecs.FieldsProducer
getMergeInstance
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
-
-
-
Constructor Detail
-
STUniformSplitTermsReader
public STUniformSplitTermsReader(PostingsReaderBase postingsReader, SegmentReadState state, BlockDecoder blockDecoder, boolean dictionaryOnHeap) throws java.io.IOException
- Throws:
java.io.IOException- See Also:
UniformSplitTermsReader(PostingsReaderBase, SegmentReadState, BlockDecoder, boolean)
-
STUniformSplitTermsReader
protected STUniformSplitTermsReader(PostingsReaderBase postingsReader, SegmentReadState state, BlockDecoder blockDecoder, boolean dictionaryOnHeap, FieldMetadata.Serializer fieldMetadataReader, java.lang.String codecName, int versionStart, int versionCurrent, java.lang.String termsBlocksExtension, java.lang.String dictionaryExtension) throws java.io.IOException
- Throws:
java.io.IOException- See Also:
UniformSplitTermsReader(PostingsReaderBase, SegmentReadState, BlockDecoder, boolean)
-
-
Method Detail
-
fillFieldMap
protected void fillFieldMap(PostingsReaderBase postingsReader, SegmentReadState state, BlockDecoder blockDecoder, boolean dictionaryOnHeap, IndexInput dictionaryInput, IndexInput blockInput, java.util.Collection<FieldMetadata> fieldMetadataCollection, FieldInfos fieldInfos) throws java.io.IOException
- Overrides:
fillFieldMapin classUniformSplitTermsReader- Throws:
java.io.IOException
-
getTermsRamBytesUsed
protected long getTermsRamBytesUsed()
- Overrides:
getTermsRamBytesUsedin classUniformSplitTermsReader
-
createUnionFieldMetadata
protected FieldMetadata createUnionFieldMetadata(java.lang.Iterable<FieldMetadata> fieldMetadataIterable)
Creates a virtualFieldMetadatathat is the union of the givenFieldMetadatas. ItsFieldMetadata.getFirstBlockStartFP(),FieldMetadata.getLastBlockStartFP()andFieldMetadata.getLastTerm()are respectively the min and max among theFieldMetadatas provided as parameter.
-
-