Class UniformSplitTerms
- java.lang.Object
-
- org.apache.lucene.index.Terms
-
- org.apache.lucene.codecs.uniformsplit.UniformSplitTerms
-
- Direct Known Subclasses:
STUniformSplitTerms
public class UniformSplitTerms extends Terms
Termsbased on the Uniform Split technique.The
index dictionaryis lazy loaded only whenTermsEnum.seekCeil(org.apache.lucene.util.BytesRef)orTermsEnum.seekExact(org.apache.lucene.util.BytesRef)are called (it is not loaded for a direct terms enumeration).- See Also:
UniformSplitTermsWriter- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Field Summary
Fields Modifier and Type Field Description protected BlockDecoderblockDecoderprotected IndexInputblockInputprotected IndexDictionary.BrowserSupplierdictionaryBrowserSupplierprotected FieldMetadatafieldMetadataprotected PostingsReaderBasepostingsReader-
Fields inherited from class org.apache.lucene.index.Terms
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUniformSplitTerms(IndexInput blockInput, FieldMetadata fieldMetadata, PostingsReaderBase postingsReader, BlockDecoder blockDecoder, IndexDictionary.BrowserSupplier dictionaryBrowserSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckIntersectAutomatonType(CompiledAutomaton automaton)intgetDocCount()BytesRefgetMax()longgetSumDocFreq()longgetSumTotalTermFreq()booleanhasFreqs()booleanhasOffsets()booleanhasPayloads()booleanhasPositions()TermsEnumintersect(CompiledAutomaton compiled, BytesRef startTerm)TermsEnumiterator()longsize()
-
-
-
Field Detail
-
blockInput
protected final IndexInput blockInput
-
fieldMetadata
protected final FieldMetadata fieldMetadata
-
postingsReader
protected final PostingsReaderBase postingsReader
-
blockDecoder
protected final BlockDecoder blockDecoder
-
dictionaryBrowserSupplier
protected final IndexDictionary.BrowserSupplier dictionaryBrowserSupplier
-
-
Constructor Detail
-
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 Detail
-
iterator
public TermsEnum iterator() throws IOException
- Specified by:
iteratorin classTerms- Throws:
IOException
-
intersect
public TermsEnum intersect(CompiledAutomaton compiled, BytesRef startTerm) throws IOException
- Overrides:
intersectin classTerms- Throws:
IOException
-
checkIntersectAutomatonType
protected void checkIntersectAutomatonType(CompiledAutomaton automaton)
-
getSumTotalTermFreq
public long getSumTotalTermFreq()
- Specified by:
getSumTotalTermFreqin classTerms
-
getSumDocFreq
public long getSumDocFreq()
- Specified by:
getSumDocFreqin classTerms
-
getDocCount
public int getDocCount()
- Specified by:
getDocCountin classTerms
-
hasOffsets
public boolean hasOffsets()
- Specified by:
hasOffsetsin classTerms
-
hasPositions
public boolean hasPositions()
- Specified by:
hasPositionsin classTerms
-
hasPayloads
public boolean hasPayloads()
- Specified by:
hasPayloadsin classTerms
-
-