public interface HashSlotArray12byteKey extends HashSlotArray
HashSlotArray
to the case where the key consists of a long
and an int
value and the value part is a block whose size is 4 + multiple of 8 (including zero).Modifier and Type | Method and Description |
---|---|
HashSlotCursor12byteKey |
cursor()
Returns a cursor over all assigned slots in this array.
|
long |
ensure(long key1,
int key2)
Ensures that there is a mapping from
(key1, key2) to a slot in the array. |
long |
get(long key1,
int key2)
Returns the address of the value block mapped by
(key1, key2) . |
boolean |
remove(long key1,
int key2)
Removes the mapping for
(key1, key2) , if any. |
address, capacity, clear, expansionThreshold, gotoAddress, gotoNew, size, trimToSize
dispose
long ensure(long key1, int 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, int key2)
(key1, key2)
.key1
- key part 1key2
- key part 2MemoryAllocator.NULL_ADDRESS
if no mapping for (key1, key2)
exists.boolean remove(long key1, int key2)
(key1, key2)
, if any.key1
- key part 1key2
- key part 2HashSlotCursor12byteKey cursor()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.