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
Modifier and TypeFieldDescriptionprotected final BlockDecoder
protected final IndexInput
protected final IndexDictionary.BrowserSupplier
protected final FieldMetadata
protected final PostingsReaderBase
Fields inherited from class org.apache.lucene.index.Terms
EMPTY_ARRAY
-
Constructor Summary
ModifierConstructorDescriptionprotected
UniformSplitTerms
(IndexInput blockInput, FieldMetadata fieldMetadata, PostingsReaderBase postingsReader, BlockDecoder blockDecoder, IndexDictionary.BrowserSupplier dictionaryBrowserSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkIntersectAutomatonType
(CompiledAutomaton automaton) int
getMax()
long
long
boolean
hasFreqs()
boolean
boolean
boolean
intersect
(CompiledAutomaton compiled, BytesRef startTerm) iterator()
long
size()
-
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:
iterator
in classTerms
- Throws:
IOException
-
intersect
- Overrides:
intersect
in classTerms
- Throws:
IOException
-
checkIntersectAutomatonType
-
getMax
-
size
public long size() -
getSumTotalTermFreq
public long getSumTotalTermFreq()- Specified by:
getSumTotalTermFreq
in classTerms
-
getSumDocFreq
public long getSumDocFreq()- Specified by:
getSumDocFreq
in classTerms
-
getDocCount
public int getDocCount()- Specified by:
getDocCount
in classTerms
-
hasFreqs
public boolean hasFreqs() -
hasOffsets
public boolean hasOffsets()- Specified by:
hasOffsets
in classTerms
-
hasPositions
public boolean hasPositions()- Specified by:
hasPositions
in classTerms
-
hasPayloads
public boolean hasPayloads()- Specified by:
hasPayloads
in classTerms
-