Class UniformSplitTerms
java.lang.Object
org.apache.lucene.index.Terms
org.apache.lucene.codecs.uniformsplit.UniformSplitTerms
- Direct Known Subclasses:
STUniformSplitTerms
Terms based on the Uniform Split technique.
The index dictionary is lazy loaded only when TermsEnum.seekCeil(org.apache.lucene.util.BytesRef) or TermsEnum.seekExact(org.apache.lucene.util.BytesRef) are called (it is not loaded for a direct
terms enumeration).
- See Also:
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BlockDecoderprotected final IndexInputprotected final IndexDictionary.BrowserSupplierprotected final FieldMetadataprotected final PostingsReaderBaseFields inherited from class org.apache.lucene.index.Terms
EMPTY_ARRAY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUniformSplitTerms(IndexInput blockInput, FieldMetadata fieldMetadata, PostingsReaderBase postingsReader, BlockDecoder blockDecoder, IndexDictionary.BrowserSupplier dictionaryBrowserSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckIntersectAutomatonType(CompiledAutomaton automaton) intgetMax()longlongbooleanhasFreqs()booleanbooleanbooleanintersect(CompiledAutomaton compiled, BytesRef startTerm) iterator()longsize()
-
Field Details
-
blockInput
-
fieldMetadata
-
postingsReader
-
blockDecoder
-
dictionaryBrowserSupplier
-
-
Constructor Details
-
UniformSplitTerms
protected UniformSplitTerms(IndexInput blockInput, FieldMetadata fieldMetadata, PostingsReaderBase postingsReader, BlockDecoder blockDecoder, IndexDictionary.BrowserSupplier dictionaryBrowserSupplier) - Parameters:
blockDecoder- Optional block decoder, may be null if none. It can be used for decompression or decryption.
-
-
Method Details
-
iterator
- Specified by:
iteratorin classTerms- Throws:
IOException
-
intersect
- Overrides:
intersectin classTerms- Throws:
IOException
-
checkIntersectAutomatonType
-
getMax
-
size
public long size() -
getSumTotalTermFreq
public long getSumTotalTermFreq()- Specified by:
getSumTotalTermFreqin classTerms
-
getSumDocFreq
public long getSumDocFreq()- Specified by:
getSumDocFreqin classTerms
-
getDocCount
public int getDocCount()- Specified by:
getDocCountin classTerms
-
hasFreqs
public boolean hasFreqs() -
hasOffsets
public boolean hasOffsets()- Specified by:
hasOffsetsin classTerms
-
hasPositions
public boolean hasPositions()- Specified by:
hasPositionsin classTerms
-
hasPayloads
public boolean hasPayloads()- Specified by:
hasPayloadsin classTerms
-