public class UniformSplitTerms
extends Terms
Terms based on the Uniform Split technique.
The index dictionary is lazy loaded only when
TermsEnum#seekCeil or TermsEnum#seekExact 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 DictionaryBrowserSupplier |
dictionaryBrowserSupplier |
protected FieldMetadata |
fieldMetadata |
protected PostingsReaderBase |
postingsReader |
| Modifier | Constructor and Description |
|---|---|
protected |
UniformSplitTerms(IndexInput blockInput,
FieldMetadata fieldMetadata,
PostingsReaderBase postingsReader,
BlockDecoder blockDecoder,
DictionaryBrowserSupplier dictionaryBrowserSupplier) |
protected |
UniformSplitTerms(IndexInput dictionaryInput,
IndexInput blockInput,
FieldMetadata fieldMetadata,
PostingsReaderBase postingsReader,
BlockDecoder blockDecoder) |
| 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() |
protected final IndexInput blockInput
protected final FieldMetadata fieldMetadata
protected final PostingsReaderBase postingsReader
protected final BlockDecoder blockDecoder
protected final DictionaryBrowserSupplier dictionaryBrowserSupplier
protected UniformSplitTerms(IndexInput dictionaryInput,
IndexInput blockInput,
FieldMetadata fieldMetadata,
PostingsReaderBase postingsReader,
BlockDecoder blockDecoder)
throws java.io.IOException
blockDecoder - Optional block decoder, may be null if none. It can be used for decompression or decryption.java.io.IOExceptionprotected UniformSplitTerms(IndexInput blockInput,
FieldMetadata fieldMetadata,
PostingsReaderBase postingsReader,
BlockDecoder blockDecoder,
DictionaryBrowserSupplier dictionaryBrowserSupplier)
blockDecoder - Optional block decoder, may be null if none. It can be used for decompression or decryption.public TermsEnum iterator()
throws java.io.IOException
java.io.IOExceptionpublic TermsEnum intersect(CompiledAutomaton compiled,
BytesRef startTerm)
throws java.io.IOException
java.io.IOExceptionprotected void checkIntersectAutomatonType(CompiledAutomaton automaton)
public BytesRef getMax()
public long size()
public long getSumTotalTermFreq()
public long getSumDocFreq()
public int getDocCount()
public boolean hasFreqs()
public boolean hasOffsets()
public boolean hasPositions()
public boolean hasPayloads()
public long ramBytesUsed()
public long ramBytesUsedWithoutDictionary()
public long getDictionaryRamBytesUsed()
Data In Motion GmbH all rights reserved