public final class OnHeapFSTStore extends java.lang.Object implements FSTStore
Modifier and Type | Field and Description |
---|---|
private static long |
BASE_RAM_BYTES_USED |
private BytesStore |
bytes
A
BytesStore , used during building, or during reading when
the FST is very large (more than 1 GB). |
private byte[] |
bytesArray
Used at read time when the FST fits into a single byte[].
|
private int |
maxBlockBits |
Constructor and Description |
---|
OnHeapFSTStore(int maxBlockBits) |
Modifier and Type | Method and Description |
---|---|
FST.BytesReader |
getReverseBytesReader() |
void |
init(DataInput in,
long numBytes) |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
void |
writeTo(DataOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildResources
private static final long BASE_RAM_BYTES_USED
private BytesStore bytes
BytesStore
, used during building, or during reading when
the FST is very large (more than 1 GB). If the FST is less than 1
GB then bytesArray is set instead.private byte[] bytesArray
private final int maxBlockBits
public void init(DataInput in, long numBytes) throws java.io.IOException
public long ramBytesUsed()
Accountable
ramBytesUsed
in interface Accountable
public FST.BytesReader getReverseBytesReader()
getReverseBytesReader
in interface FSTStore
public void writeTo(DataOutput out) throws java.io.IOException