Package org.apache.lucene.util.fst
Class OnHeapFSTStore
java.lang.Object
org.apache.lucene.util.fst.OnHeapFSTStore
- All Implemented Interfaces:
Accountable,FSTStore
Provides storage of finite state machine (FST), using byte array or byte store allocated 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 TypeMethodDescriptionvoidlongReturn the memory usage of this object in bytes.longsize()voidwriteTo(DataOutput out) 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
-
Constructor Details
-
OnHeapFSTStore
public OnHeapFSTStore(int maxBlockBits)
-
-
Method Details
-
init
- Specified by:
initin interfaceFSTStore- Throws:
IOException
-
size
public long size() -
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
-
getReverseBytesReader
- Specified by:
getReverseBytesReaderin interfaceFSTStore
-
writeTo
- Specified by:
writeToin interfaceFSTStore- Throws:
IOException
-