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.
|
SlotAssignmentResult |
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
SlotAssignmentResult ensure(long key1, long key2)
(key1, key2)
to a slot in the
array.
The returned object contains the slot value block address and whether a new
slot had to be assigned. The hash slot array implementation keeps a reference
to the returned object and will always return the same instance, albeit with
updated fields on each new invocation.
This means the returned object is valid until the next invocation of this
method.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.