public interface IndexDictionary extends Accountable
Implementations must be immutable.
Use IndexDictionary.Builder to build the IndexDictionary.
Create a stateful IndexDictionary.Browser to seek a term in this
IndexDictionary and get its corresponding block file pointer to
the terms block file.
There is a single implementation of this interface, FSTDictionary.
However this interface allows you to plug easily a new kind of index dictionary
to experiment and improve the existing one.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IndexDictionary.Browser
Stateful
IndexDictionary.Browser to seek a term in this IndexDictionary
and get its corresponding block file pointer in the block file. |
static interface |
IndexDictionary.BrowserSupplier
Supplier for a new stateful
IndexDictionary.Browser created on the immutable IndexDictionary. |
static interface |
IndexDictionary.Builder
Builds an immutable
IndexDictionary. |
NULL_ACCOUNTABLE| Modifier and Type | Method and Description |
|---|---|
IndexDictionary.Browser |
browser()
Creates a new
IndexDictionary.Browser. |
void |
write(DataOutput output,
BlockEncoder blockEncoder)
Writes this dictionary to the provided output.
|
getChildResources, ramBytesUsedvoid write(DataOutput output, BlockEncoder blockEncoder) throws IOException
blockEncoder - The BlockEncoder for specific encoding of this index dictionary;
or null if none.IOExceptionIndexDictionary.Browser browser() throws IOException
IndexDictionary.Browser.IOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.