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 statefulFSTDictionary.Browser
to seek in theFSTDictionary
.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Field Summary
Fields Modifier and Type Field Description protected BlockDecoder
blockDecoder
protected IndexDictionary
dictionary
Lazy loaded immutable index dictionary (trie hold in RAM).protected IndexInput
dictionaryInput
-
Constructor Summary
Constructors Constructor Description BrowserSupplier(IndexInput dictionaryInput, long startFilePointer, BlockDecoder blockDecoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexDictionary.Browser
get()
long
ramBytesUsed()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
-
-
-
Field Detail
-
dictionaryInput
protected final IndexInput dictionaryInput
-
blockDecoder
protected final BlockDecoder blockDecoder
-
dictionary
protected IndexDictionary dictionary
Lazy loaded immutable index dictionary (trie hold in RAM).
-
-
Constructor Detail
-
BrowserSupplier
public BrowserSupplier(IndexInput dictionaryInput, long startFilePointer, BlockDecoder blockDecoder) throws IOException
- Throws:
IOException
-
-
Method Detail
-
get
public IndexDictionary.Browser get() throws IOException
- Specified by:
get
in interfaceIOSupplier<IndexDictionary.Browser>
- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()
- Specified by:
ramBytesUsed
in interfaceAccountable
-
-