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:
Closeable,AutoCloseable,Iterable<String>
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:
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
Fields inherited from class org.apache.lucene.codecs.uniformsplit.UniformSplitTermsReader
blockInput, dictionaryInput, fieldToTermsMap, postingsReader, sortedFieldNames, versionFields inherited from class org.apache.lucene.index.Fields
EMPTY_ARRAY -
Constructor Summary
ConstructorsModifierConstructorDescriptionSTUniformSplitTermsReader(PostingsReaderBase postingsReader, SegmentReadState state, BlockDecoder blockDecoder, boolean dictionaryOnHeap) protectedSTUniformSplitTermsReader(PostingsReaderBase postingsReader, SegmentReadState state, BlockDecoder blockDecoder, boolean dictionaryOnHeap, FieldMetadata.Serializer fieldMetadataReader, String codecName, int versionStart, int versionCurrent, String termsBlocksExtension, String dictionaryExtension) -
Method Summary
Modifier and TypeMethodDescriptionprotected FieldMetadatacreateUnionFieldMetadata(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, Collection<FieldMetadata> fieldMetadataCollection, FieldInfos fieldInfos) Methods inherited from class org.apache.lucene.codecs.uniformsplit.UniformSplitTermsReader
checkIntegrity, close, createDictionaryBrowserSupplier, iterator, readEncodedFieldsMetadata, readFieldsMetadata, readUnencodedFieldsMetadata, seekFieldsMetadata, size, termsMethods inherited from class org.apache.lucene.codecs.FieldsProducer
getMergeInstanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
STUniformSplitTermsReader
public STUniformSplitTermsReader(PostingsReaderBase postingsReader, SegmentReadState state, BlockDecoder blockDecoder, boolean dictionaryOnHeap) throws IOException - Throws:
IOException- See Also:
-
STUniformSplitTermsReader
protected STUniformSplitTermsReader(PostingsReaderBase postingsReader, SegmentReadState state, BlockDecoder blockDecoder, boolean dictionaryOnHeap, FieldMetadata.Serializer fieldMetadataReader, String codecName, int versionStart, int versionCurrent, String termsBlocksExtension, String dictionaryExtension) throws IOException - Throws:
IOException- See Also:
-
-
Method Details
-
fillFieldMap
protected void fillFieldMap(PostingsReaderBase postingsReader, SegmentReadState state, BlockDecoder blockDecoder, boolean dictionaryOnHeap, IndexInput dictionaryInput, IndexInput blockInput, Collection<FieldMetadata> fieldMetadataCollection, FieldInfos fieldInfos) throws IOException - Overrides:
fillFieldMapin classUniformSplitTermsReader- Throws:
IOException
-
createUnionFieldMetadata
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.
-