public class UniformSplitTerms extends Terms implements Accountable
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).
UniformSplitTermsWriter| Modifier and Type | Field and Description |
|---|---|
protected BlockDecoder |
blockDecoder |
protected IndexInput |
blockInput |
protected IndexDictionary.BrowserSupplier |
dictionaryBrowserSupplier |
protected FieldMetadata |
fieldMetadata |
protected PostingsReaderBase |
postingsReader |
EMPTY_ARRAYNULL_ACCOUNTABLE| Modifier | Constructor and Description |
|---|---|
protected |
UniformSplitTerms(IndexInput blockInput,
FieldMetadata fieldMetadata,
PostingsReaderBase postingsReader,
BlockDecoder blockDecoder,
IndexDictionary.BrowserSupplier dictionaryBrowserSupplier) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkIntersectAutomatonType(CompiledAutomaton automaton) |
long |
getDictionaryRamBytesUsed() |
int |
getDocCount() |
BytesRef |
getMax() |
long |
getSumDocFreq() |
long |
getSumTotalTermFreq() |
boolean |
hasFreqs() |
boolean |
hasOffsets() |
boolean |
hasPayloads() |
boolean |
hasPositions() |
TermsEnum |
intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
TermsEnum |
iterator() |
long |
ramBytesUsed() |
long |
ramBytesUsedWithoutDictionary() |
long |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildResourcesprotected final IndexInput blockInput
protected final FieldMetadata fieldMetadata
protected final PostingsReaderBase postingsReader
protected final BlockDecoder blockDecoder
protected final IndexDictionary.BrowserSupplier dictionaryBrowserSupplier
protected UniformSplitTerms(IndexInput blockInput, FieldMetadata fieldMetadata, PostingsReaderBase postingsReader, BlockDecoder blockDecoder, IndexDictionary.BrowserSupplier dictionaryBrowserSupplier)
blockDecoder - Optional block decoder, may be null if none. It can be used for decompression or decryption.public TermsEnum iterator() throws IOException
iterator in class TermsIOExceptionpublic TermsEnum intersect(CompiledAutomaton compiled, BytesRef startTerm) throws IOException
intersect in class TermsIOExceptionprotected void checkIntersectAutomatonType(CompiledAutomaton automaton)
public long getSumTotalTermFreq()
getSumTotalTermFreq in class Termspublic long getSumDocFreq()
getSumDocFreq in class Termspublic int getDocCount()
getDocCount in class Termspublic boolean hasOffsets()
hasOffsets in class Termspublic boolean hasPositions()
hasPositions in class Termspublic boolean hasPayloads()
hasPayloads in class Termspublic long ramBytesUsed()
ramBytesUsed in interface Accountablepublic long ramBytesUsedWithoutDictionary()
public long getDictionaryRamBytesUsed()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.