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:
-
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.BasicEntrySetNested classes/interfaces inherited from interface it.unimi.dsi.fastutil.Hash
it.unimi.dsi.fastutil.Hash.Strategy<K extends Object>Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.longs.Long2IntMap
it.unimi.dsi.fastutil.longs.Long2IntMap.Entry, it.unimi.dsi.fastutil.longs.Long2IntMap.FastEntrySet -
Field Summary
Fields inherited from class it.unimi.dsi.fastutil.longs.Long2IntOpenHashMap
containsNullKey, entries, f, key, keys, mask, maxFill, minN, n, size, value, valuesFields inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2IntFunction
defRetValueFields inherited from interface it.unimi.dsi.fastutil.Hash
DEFAULT_GROWTH_FACTOR, DEFAULT_INITIAL_SIZE, DEFAULT_LOAD_FACTOR, FAST_LOAD_FACTOR, FREE, OCCUPIED, PRIMES, REMOVED, VERY_FAST_LOAD_FACTOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdecrementAndGet(Object key) Decrements the reference count of an object by 1 and returns the updated reference countintincrementAndGet(Object key) Increments the reference count of an object by 1 and returns the updated reference countlongsizeOf()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, valuesMethods inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2IntMap
equals, toStringMethods inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2IntFunction
defaultReturnValue, defaultReturnValueMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.Function
applyMethods inherited from interface it.unimi.dsi.fastutil.longs.Long2IntFunction
applyAsIntMethods 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, replaceMethods inherited from interface java.util.Map
forEach, replaceAll
-
Constructor Details
-
ReferenceCountMap
public ReferenceCountMap()
-
-
Method Details
-
incrementAndGet
Increments the reference count of an object by 1 and returns the updated reference count -
decrementAndGet
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.
-