Package one.nio.mem

Class OffheapBlobMap

    • Constructor Detail

      • OffheapBlobMap

        public OffheapBlobMap​(int capacity)
    • Method Detail

      • keyAt

        public byte[] keyAt​(long entry)
        Overrides:
        keyAt in class OffheapMap<byte[],​byte[]>
      • hashCode

        protected long hashCode​(byte[] key)
        Specified by:
        hashCode in class OffheapMap<byte[],​byte[]>
      • equalsAt

        protected boolean equalsAt​(long entry,
                                   byte[] key)
        Specified by:
        equalsAt in class OffheapMap<byte[],​byte[]>
      • valueAt

        protected byte[] valueAt​(long entry)
        Specified by:
        valueAt in class OffheapMap<byte[],​byte[]>
      • setValueAt

        protected void setValueAt​(long entry,
                                  byte[] value)
        Specified by:
        setValueAt in class OffheapMap<byte[],​byte[]>
      • allocateEntry

        protected long allocateEntry​(byte[] key,
                                     long hashCode,
                                     int size)
        Specified by:
        allocateEntry in class OffheapMap<byte[],​byte[]>
      • destroyEntry

        protected void destroyEntry​(long entry)
        Specified by:
        destroyEntry in class OffheapMap<byte[],​byte[]>
      • sizeOf

        protected int sizeOf​(long entry)
        Specified by:
        sizeOf in class OffheapMap<byte[],​byte[]>
      • sizeOf

        protected int sizeOf​(byte[] value)
        Specified by:
        sizeOf in class OffheapMap<byte[],​byte[]>