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