java.lang.Object
org.apache.lucene.util.fst.OffHeapFSTStore
- All Implemented Interfaces:
Accountable,FSTStore
Provides off heap storage of finite state machine (FST), using underlying index input instead of
byte store on heap
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate IndexInputprivate longprivate longFields 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
-
Field Details
-
BASE_RAM_BYTES_USED
private static final long BASE_RAM_BYTES_USED -
in
-
offset
private long offset -
numBytes
private long numBytes
-
-
Constructor Details
-
OffHeapFSTStore
public OffHeapFSTStore()
-
-
Method Details
-
init
- 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
-
size
public long size() -
getReverseBytesReader
- Specified by:
getReverseBytesReaderin interfaceFSTStore
-
writeTo
- Specified by:
writeToin interfaceFSTStore- Throws:
IOException
-