Class FSTDictionary.BrowserSupplier
java.lang.Object
org.apache.lucene.codecs.uniformsplit.FSTDictionary.BrowserSupplier
- All Implemented Interfaces:
IndexDictionary.BrowserSupplier
,IOSupplier<IndexDictionary.Browser>
- Enclosing class:
- FSTDictionary
public static class FSTDictionary.BrowserSupplier
extends Object
implements IndexDictionary.BrowserSupplier
Provides stateful
FSTDictionary.Browser
to seek in the FSTDictionary
.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BlockDecoder
protected IndexDictionary
Lazy loaded immutable index dictionary FST.protected final IndexInput
protected final boolean
-
Constructor Summary
ConstructorDescriptionBrowserSupplier
(IndexInput dictionaryInput, long dictionaryStartFP, BlockDecoder blockDecoder, boolean isFSTOnHeap) -
Method Summary
-
Field Details
-
dictionaryInput
-
blockDecoder
-
isFSTOnHeap
protected final boolean isFSTOnHeap -
dictionary
Lazy loaded immutable index dictionary FST. The FST is either kept off-heap, or hold in RAM on-heap.
-
-
Constructor Details
-
BrowserSupplier
public BrowserSupplier(IndexInput dictionaryInput, long dictionaryStartFP, BlockDecoder blockDecoder, boolean isFSTOnHeap) throws IOException - Throws:
IOException
-
-
Method Details
-
get
- Specified by:
get
in interfaceIOSupplier<IndexDictionary.Browser>
- Throws:
IOException
-