Package io.trino.array
Class ReferenceCountMap
- java.lang.Object
-
- it.unimi.dsi.fastutil.longs.AbstractLong2IntFunction
-
- it.unimi.dsi.fastutil.longs.AbstractLong2IntMap
-
- it.unimi.dsi.fastutil.longs.Long2IntOpenHashMap
-
- io.trino.array.ReferenceCountMap
-
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<Long,Integer>
,it.unimi.dsi.fastutil.Hash
,it.unimi.dsi.fastutil.longs.Long2IntFunction
,it.unimi.dsi.fastutil.longs.Long2IntMap
,Serializable
,Cloneable
,Function<Long,Integer>
,LongToIntFunction
,Map<Long,Integer>
public final class ReferenceCountMap extends it.unimi.dsi.fastutil.longs.Long2IntOpenHashMap
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2IntMap
it.unimi.dsi.fastutil.longs.AbstractLong2IntMap.BasicEntry, it.unimi.dsi.fastutil.longs.AbstractLong2IntMap.BasicEntrySet
-
Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.Hash
it.unimi.dsi.fastutil.Hash.Strategy<K extends Object>
-
-
Constructor Summary
Constructors Constructor Description ReferenceCountMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
decrementAndGet(Object key)
Decrements the reference count of an object by 1 and returns the updated reference countint
incrementAndGet(Object key)
Increments the reference count of an object by 1 and returns the updated reference countlong
sizeOf()
Returns the size of this map in bytes.-
Methods inherited from class it.unimi.dsi.fastutil.longs.Long2IntOpenHashMap
addTo, clear, clone, compute, computeIfAbsent, computeIfAbsentNullable, computeIfPresent, containsKey, containsValue, get, getOrDefault, hashCode, isEmpty, keySet, long2IntEntrySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, shiftKeys, size, trim, trim, values
-
Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2IntFunction
defaultReturnValue, defaultReturnValue
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface it.unimi.dsi.fastutil.longs.Long2IntMap
compute, computeIfAbsent, computeIfAbsentPartial, computeIfPresent, containsKey, containsValue, defaultReturnValue, defaultReturnValue, entrySet, get, getOrDefault, merge, put, putIfAbsent, remove, remove, replace, replace
-
Methods inherited from interface java.util.Map
forEach, replaceAll
-
-
-
-
Method Detail
-
incrementAndGet
public int incrementAndGet(Object key)
Increments the reference count of an object by 1 and returns the updated reference count
-
decrementAndGet
public int decrementAndGet(Object key)
Decrements the reference count of an object by 1 and returns the updated reference count
-
sizeOf
public long sizeOf()
Returns the size of this map in bytes.
-
-