Package org.apache.lucene.util.fst
Class OffHeapFSTStore
java.lang.Object
org.apache.lucene.util.fst.OffHeapFSTStore
- All Implemented Interfaces:
Accountable,FSTReader
Provides off heap storage of finite state machine (FST), using underlying index input instead of
byte store on heap
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the reverse BytesReader for this FSTlongReturn the memory usage of this object in bytes.longsize()voidwriteTo(DataOutput out) Write this FST to another DataOutputMethods 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
-
Constructor Details
-
OffHeapFSTStore
-
-
Method Details
-
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
-
size
public long size() -
getReverseBytesReader
Description copied from interface:FSTReaderGet the reverse BytesReader for this FST- Specified by:
getReverseBytesReaderin interfaceFSTReader- Returns:
- the reverse BytesReader
-
writeTo
Description copied from interface:FSTReaderWrite this FST to another DataOutput- Specified by:
writeToin interfaceFSTReader- Parameters:
out- the DataOutput- Throws:
IOException- if exception occurred during writing
-