Package org.apache.lucene.util.fst
Class OffHeapFSTStore
- java.lang.Object
-
- org.apache.lucene.util.fst.OffHeapFSTStore
-
- All Implemented Interfaces:
Accountable,FSTStore
public final class OffHeapFSTStore extends Object implements FSTStore
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 Constructor Description OffHeapFSTStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FST.BytesReadergetReverseBytesReader()voidinit(DataInput in, long numBytes)longramBytesUsed()Return 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, wait
-
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
-
-
-
Method Detail
-
init
public void init(DataInput in, long numBytes) throws IOException
- Specified by:
initin interfaceFSTStore- Throws:
IOException
-
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
public FST.BytesReader getReverseBytesReader()
- Specified by:
getReverseBytesReaderin interfaceFSTStore
-
writeTo
public void writeTo(DataOutput out) throws IOException
- Specified by:
writeToin interfaceFSTStore- Throws:
IOException
-
-