Package org.nustaq.offheap
Class OffHeapByteTree
java.lang.Object
org.nustaq.offheap.OffHeapByteTree
public class OffHeapByteTree
extends java.lang.Object
Created by ruedi on 29.06.14.
rewrite as old version was unmaintainable and poorly documented + segfaulted on some very
specific operation + data permutations
Temporary on-heap slowish implementation (so index for offheap objects is on heap currently)
-
Constructor Summary
Constructors Constructor Description OffHeapByteTree(int keyLen, long aVoid) -
Method Summary
Modifier and Type Method Description voiddumpStats()static longestimateMBytesForIndex(int keyLen, int numberOfElems)voidfree()longget(ByteSource byteKey)protected HeapBytezgetTmpHeapBytez(ByteSource byteKey, byte[] base)voidput(ByteSource byteKey, long off)voidremove(ByteSource byteKey)
-
Constructor Details
-
OffHeapByteTree
public OffHeapByteTree(int keyLen, long aVoid)
-
-
Method Details
-
estimateMBytesForIndex
public static long estimateMBytesForIndex(int keyLen, int numberOfElems) -
put
-
get
-
getTmpHeapBytez
-
remove
-
dumpStats
public void dumpStats() -
free
public void free()
-