public class DictionaryBrowserSupplier extends java.lang.Object implements java.util.function.Supplier<IndexDictionary.Browser>
IndexDictionary.Browser created on
the immutable IndexDictionary.
The immutable IndexDictionary is lazy loaded thread safely. This
lazy loading allows us to load it only when TermsEnum#seekCeil
or TermsEnum#seekExact are called (it is not loaded for a direct
all-terms enumeration).
| Modifier and Type | Field and Description |
|---|---|
protected BlockDecoder |
blockDecoder |
protected IndexDictionary |
dictionary
Lazy loaded immutable index dictionary (trie hold in RAM).
|
protected IndexInput |
dictionaryInput |
| Constructor and Description |
|---|
DictionaryBrowserSupplier(IndexInput dictionaryInput,
long startFilePointer,
BlockDecoder blockDecoder) |
| Modifier and Type | Method and Description |
|---|---|
IndexDictionary.Browser |
get()
Gets or lazy loads the immutable
IndexDictionary thread safely
and creates a new IndexDictionary.Browser. |
long |
ramBytesUsed() |
protected final IndexInput dictionaryInput
protected final BlockDecoder blockDecoder
protected IndexDictionary dictionary
public DictionaryBrowserSupplier(IndexInput dictionaryInput,
long startFilePointer,
BlockDecoder blockDecoder)
throws java.io.IOException
java.io.IOExceptionpublic IndexDictionary.Browser get()
IndexDictionary thread safely
and creates a new IndexDictionary.Browser.get in interface java.util.function.Supplier<IndexDictionary.Browser>public long ramBytesUsed()
Data In Motion GmbH all rights reserved