Class FSTDictionary.BrowserSupplier
java.lang.Object
org.apache.lucene.codecs.uniformsplit.FSTDictionary.BrowserSupplier
- All Implemented Interfaces:
IndexDictionary.BrowserSupplier,Accountable,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.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BlockDecoderprotected IndexDictionaryLazy loaded immutable index dictionary FST.protected final IndexInputprotected final booleanFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsConstructorDescriptionBrowserSupplier(IndexInput dictionaryInput, long dictionaryStartFP, BlockDecoder blockDecoder, boolean isFSTOnHeap) -
Method Summary
Modifier and TypeMethodDescriptionget()Gets the result.longReturn the memory usage of this object in bytes.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
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
Description copied from interface:IOSupplierGets the result.- Specified by:
getin interfaceIOSupplier<IndexDictionary.Browser>- Returns:
- the result
- Throws:
IOException- if producing the result throws anIOException
-
ramBytesUsed
public long ramBytesUsed()Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsedin interfaceAccountable
-