Package org.nustaq.offheap
Class FSTLongOffheapMap<V>
java.lang.Object
org.nustaq.offheap.FSTBinaryOffheapMap
org.nustaq.offheap.FSTCodedOffheapMap<K,V>
org.nustaq.offheap.FSTSerializedOffheapMap<java.lang.Long,V>
org.nustaq.offheap.FSTLongOffheapMap<V>
public class FSTLongOffheapMap<V> extends FSTSerializedOffheapMap<java.lang.Long,V>
Created by ruedi on 15.11.14.
Same as FSTAsciiStringOffheapMap, but uses Long as key
see FSTAsciiStringOffheapMap for doc.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.nustaq.offheap.FSTBinaryOffheapMap
FSTBinaryOffheapMap.KeyValIter -
Field Summary
Fields inherited from class org.nustaq.offheap.FSTBinaryOffheapMap
alloc, bytezOffset, CORE_HEADER_LEN, CUSTOM_FILEHEADER_LEN, customHeader, FILE_HEADER_LEN, freeList, GB, index, KEY_OFFSET_IN_HEADER, keyLen, mappedFile, MB, memory, mutationCount, numElem -
Constructor Summary
Constructors Constructor Description FSTLongOffheapMap(long sizeBytes, int numberOfElems)FSTLongOffheapMap(long sizeBytes, int numberOfElems, FSTCoder coder)FSTLongOffheapMap(java.lang.String mappedFile, long sizeMemBytes, int numberOfElems)FSTLongOffheapMap(java.lang.String mappedFile, long sizeMemBytes, int numberOfElems, FSTCoder coder) -
Method Summary
Modifier and Type Method Description ByteSourceencodeKey(java.lang.Long key)Methods inherited from class org.nustaq.offheap.FSTSerializedOffheapMap
decodeValue, encodeValue, getCoder, getEntryLengthForContentLengthMethods inherited from class org.nustaq.offheap.FSTBinaryOffheapMap
addEntry, addToFreeList, binaryKeys, binaryValues, decElems, dumpIndexStats, finalize, free, getBinary, getCapacityMB, getContentLenFromHeader, getCustomFileHeader, getFileName, getFreeMem, getHeaderLen, getLenFromHeader, getSize, getUsedMem, incElems, init, initFromFile, main, printBinaryKey, putBinary, removeBinary, removeEntry, resizeStore, setEntry, writeEntryHeader
-
Constructor Details
-
FSTLongOffheapMap
-
FSTLongOffheapMap
public FSTLongOffheapMap(java.lang.String mappedFile, long sizeMemBytes, int numberOfElems, FSTCoder coder) throws java.lang.Exception- Throws:
java.lang.Exception
-
FSTLongOffheapMap
public FSTLongOffheapMap(long sizeBytes, int numberOfElems) -
FSTLongOffheapMap
public FSTLongOffheapMap(java.lang.String mappedFile, long sizeMemBytes, int numberOfElems) throws java.lang.Exception- Throws:
java.lang.Exception
-
-
Method Details
-
encodeKey
- Specified by:
encodeKeyin classFSTCodedOffheapMap<java.lang.Long,V>
-