Interface IndexDictionary
- All Superinterfaces:
Accountable
- All Known Implementing Classes:
FSTDictionary
Immutable stateless index dictionary kept in RAM.
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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceStatefulIndexDictionary.Browserto seek a term in thisIndexDictionaryand get its corresponding block file pointer in the block file.static interfaceSupplier for a new statefulIndexDictionary.Browsercreated on the immutableIndexDictionary.static interfaceBuilds an immutableIndexDictionary. -
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Method Summary
Modifier and TypeMethodDescriptionbrowser()Creates a newIndexDictionary.Browser.voidwrite(DataOutput output, BlockEncoder blockEncoder) Writes this dictionary to the provided output.Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources, ramBytesUsed
-
Method Details
-
write
Writes this dictionary to the provided output.- Parameters:
blockEncoder- TheBlockEncoderfor specific encoding of this index dictionary; or null if none.- Throws:
IOException
-
browser
Creates a newIndexDictionary.Browser.- Throws:
IOException
-