Class HashMapLockFreeK2V2
java.lang.Object
io.deephaven.util.datastructures.hash.HashMapBase
io.deephaven.util.datastructures.hash.HashMapK2V2
io.deephaven.util.datastructures.hash.HashMapLockFreeK2V2
- All Implemented Interfaces:
gnu.trove.map.TLongLongMap
,TNullableLongLongMap
-
Constructor Summary
ConstructorDescriptionHashMapLockFreeK2V2
(int desiredInitialCapacity) HashMapLockFreeK2V2
(int desiredInitialCapacity, float loadFactor, long noEntryValue) -
Method Summary
Modifier and TypeMethodDescriptionfinal int
capacity()
final void
clear()
final long
get
(long key) final gnu.trove.iterator.TLongLongIterator
iterator()
final long[]
keys()
final long[]
keys
(long[] array) final long
put
(long key, long value) final long
putIfAbsent
(long key, long value) final long
remove
(long key) final void
protected void
setKeysAndValues
(long[] keysAndValues) final long[]
values()
final long[]
values
(long[] array) Methods inherited from class io.deephaven.util.datastructures.hash.HashMapK2V2
putImplNoTranslate
Methods inherited from class io.deephaven.util.datastructures.hash.HashMapBase
adjustOrPutValue, adjustValue, containsKey, containsValue, forEachEntry, forEachKey, forEachValue, getNoEntryKey, getNoEntryValue, increment, isEmpty, keySet, putAll, putAll, retainEntries, size, transformValues, valueCollection
-
Constructor Details
-
HashMapLockFreeK2V2
public HashMapLockFreeK2V2() -
HashMapLockFreeK2V2
public HashMapLockFreeK2V2(int desiredInitialCapacity) -
HashMapLockFreeK2V2
public HashMapLockFreeK2V2(int desiredInitialCapacity, float loadFactor, long noEntryValue)
-
-
Method Details
-
setKeysAndValues
protected void setKeysAndValues(long[] keysAndValues) - Specified by:
setKeysAndValues
in classHashMapBase
-
put
public final long put(long key, long value) -
putIfAbsent
public final long putIfAbsent(long key, long value) -
get
public final long get(long key) -
remove
public final long remove(long key) -
capacity
public final int capacity() -
clear
public final void clear() -
resetToNull
public final void resetToNull() -
keys
public final long[] keys() -
keys
public final long[] keys(long[] array) -
values
public final long[] values() -
values
public final long[] values(long[] array) -
iterator
public final gnu.trove.iterator.TLongLongIterator iterator()
-