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_ARRAY
NULL_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, wait
getChildResources
protected 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 Terms
IOException
public TermsEnum intersect(CompiledAutomaton compiled, BytesRef startTerm) throws IOException
intersect
in class Terms
IOException
protected void checkIntersectAutomatonType(CompiledAutomaton automaton)
public long getSumTotalTermFreq()
getSumTotalTermFreq
in class Terms
public long getSumDocFreq()
getSumDocFreq
in class Terms
public int getDocCount()
getDocCount
in class Terms
public boolean hasOffsets()
hasOffsets
in class Terms
public boolean hasPositions()
hasPositions
in class Terms
public boolean hasPayloads()
hasPayloads
in class Terms
public long ramBytesUsed()
ramBytesUsed
in interface Accountable
public long ramBytesUsedWithoutDictionary()
public long getDictionaryRamBytesUsed()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.