public abstract class FSTSerializedOffheapMap<K,V> extends FSTCodedOffheapMap<K,V>
FSTBinaryOffheapMap.KeyValIteralloc, bytezOffset, CORE_HEADER_LEN, CUSTOM_FILEHEADER_LEN, customHeader, FILE_HEADER_LEN, freeList, GB, index, KEY_OFFSET_IN_HEADER, keyLen, MB, memory, numElem| Constructor and Description |
|---|
FSTSerializedOffheapMap(int keyLen,
long sizeBytes,
int numberOfElems,
FSTConfiguration conf) |
FSTSerializedOffheapMap(String mappedFile,
int keyLen,
long sizeMemBytes,
int numberOfElems,
FSTConfiguration conf) |
| Modifier and Type | Method and Description |
|---|---|
V |
decodeValue(BytezByteSource val) |
ByteSource |
encodeValue(V value) |
protected int |
getEntryLengthForContentLength(long lengthOfEntry)
default is to let 100% room for later entry growth.
|
encodeKey, get, put, remove, valuesaddEntry, addToFreeList, binaryKeys, binaryValues, decElems, dumpIndexStats, finalize, free, getBinary, getCapacityMB, getContentLenFromHeader, getCustomFileHeader, getFreeMem, getHeaderLen, getLenFromHeader, getSize, getUsedMem, incElems, init, initFromFile, printBinaryKey, putBinary, removeBinary, removeEntry, setEntry, writeEntryHeaderpublic FSTSerializedOffheapMap(int keyLen,
long sizeBytes,
int numberOfElems,
FSTConfiguration conf)
public FSTSerializedOffheapMap(String mappedFile, int keyLen, long sizeMemBytes, int numberOfElems, FSTConfiguration conf) throws Exception
Exceptionpublic ByteSource encodeValue(V value)
encodeValue in class FSTCodedOffheapMap<K,V>protected int getEntryLengthForContentLength(long lengthOfEntry)
getEntryLengthForContentLength in class FSTBinaryOffheapMaplengthOfEntry - public V decodeValue(BytezByteSource val)
decodeValue in class FSTCodedOffheapMap<K,V>Copyright © 2014. All rights reserved.