public interface HashSlotArray16byteKey extends HashSlotArray
HashSlotArray
to the case where the key consists of two long
values
and the value part is a block whose size is a multiple of 8 (including zero).Modifier and Type | Method and Description |
---|---|
HashSlotCursor16byteKey |
cursor()
Returns a cursor over all assigned slots in this array.
|
long |
ensure(long key1,
long key2)
Ensures that there is a mapping from
(key1, key2) to a slot in the array. |
long |
get(long key1,
long key2)
Returns the address of the value block mapped by
(key1, key2) . |
boolean |
remove(long key1,
long key2)
Removes the mapping for
(key1, key2) , if any. |
address, capacity, clear, expansionThreshold, gotoAddress, gotoNew, size, trimToSize
dispose
long ensure(long key1, long key2)
(key1, key2)
to a slot in the array.
The abs
of the returned integer is the address of the slot's value block.
The returned integer is positive if a new slot had to be assigned and negative
if the slot was already assigned.key1
- key part 1key2
- key part 2long get(long key1, long key2)
(key1, key2)
.key1
- key part 1key2
- key part 2MemoryAllocator.NULL_ADDRESS
if no mapping for (key1, key2)
exists.boolean remove(long key1, long key2)
(key1, key2)
, if any.key1
- key part 1key2
- key part 2HashSlotCursor16byteKey cursor()
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.