Class OffHeapByteTree

java.lang.Object
org.nustaq.offheap.OffHeapByteTree

public class OffHeapByteTree extends 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 Details

    • OffHeapByteTree

      public OffHeapByteTree(int keyLen, long aVoid)
  • Method Details

    • estimateMBytesForIndex

      public static long estimateMBytesForIndex(int keyLen, int numberOfElems)
    • put

      public void put(ByteSource byteKey, long off)
    • get

      public long get(ByteSource byteKey)
    • getTmpHeapBytez

      protected HeapBytez getTmpHeapBytez(ByteSource byteKey, byte[] base)
    • remove

      public void remove(ByteSource byteKey)
    • dumpStats

      public void dumpStats()
    • free

      public void free()