Package one.nio.mem
Class OffheapBlobMap
java.lang.Object
one.nio.mem.OffheapMap<byte[],byte[]>
one.nio.mem.OffheapBlobMap
- All Implemented Interfaces:
OffheapMapMXBean
-
Nested Class Summary
Nested classes/interfaces inherited from class one.nio.mem.OffheapMap
OffheapMap.BasicCleanup, OffheapMap.Record<K,V>, OffheapMap.SamplingCleanup, OffheapMap.Visitor<K, V>, OffheapMap.WritableRecord<K, V>, OffheapMap.WritableVisitor<K, V> -
Field Summary
FieldsFields inherited from class one.nio.mem.OffheapMap
byteArrayOffset, capacity, cleanupInterval, cleanupThread, cleanupThreshold, CONCURRENCY_LEVEL, count, expirations, HASH_OFFSET, HEADER_SIZE, locks, lockWaitTime, log, mapBase, maxSamples, MB, minTimeToLive, NEXT_OFFSET, TIME_OFFSET, timeToLive, unsafe -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected longallocateEntry(byte[] key, long hashCode, int size) protected voiddestroyEntry(long entry) protected booleanequalsAt(long entry, byte[] key) protected longhashCode(byte[] key) byte[]keyAt(long entry) protected voidsetValueAt(long entry, byte[] value) protected intsizeOf(byte[] value) protected intsizeOf(long entry) protected byte[]valueAt(long entry) Methods inherited from class one.nio.mem.OffheapMap
bucketFor, clear, close, closeInternal, entriesToClean, get, getCapacity, getCleanupInterval, getCleanupThreshold, getCount, getExpirations, getLockWaitTime, getMaxSamples, getMinTimeToLive, getTimeToLive, isExpired, iterate, iterate, iterate, iterate, iterate, iterate, lockFor, lockRecordForRead, lockRecordForRead, lockRecordForWrite, lockRecordForWrite, put, putIfAbsent, remove, removeExpired, reuseEntry, setCleanupInterval, setCleanupThreshold, setLockWaitTime, setMaxSamples, setMinTimeToLive, setTimeAt, setTimeAt, setTimeToLive, shouldCleanup, timeAt, touch
-
Field Details
-
KEY_OFFSET
protected static final int KEY_OFFSET- See Also:
-
-
Constructor Details
-
OffheapBlobMap
public OffheapBlobMap(int capacity)
-
-
Method Details
-
keyAt
public byte[] keyAt(long entry) - Overrides:
keyAtin classOffheapMap<byte[],byte[]>
-
hashCode
protected long hashCode(byte[] key) - Specified by:
hashCodein classOffheapMap<byte[],byte[]>
-
equalsAt
protected boolean equalsAt(long entry, byte[] key) - Specified by:
equalsAtin classOffheapMap<byte[],byte[]>
-
valueAt
protected byte[] valueAt(long entry) - Specified by:
valueAtin classOffheapMap<byte[],byte[]>
-
setValueAt
protected void setValueAt(long entry, byte[] value) - Specified by:
setValueAtin classOffheapMap<byte[],byte[]>
-
allocateEntry
protected long allocateEntry(byte[] key, long hashCode, int size) - Specified by:
allocateEntryin classOffheapMap<byte[],byte[]>
-
destroyEntry
protected void destroyEntry(long entry) - Specified by:
destroyEntryin classOffheapMap<byte[],byte[]>
-
sizeOf
protected int sizeOf(long entry) - Specified by:
sizeOfin classOffheapMap<byte[],byte[]>
-
sizeOf
protected int sizeOf(byte[] value) - Specified by:
sizeOfin classOffheapMap<byte[],byte[]>
-