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.BasicEntrySet

    Nested 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, values

    Fields inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2IntFunction

    defRetValue

    Fields 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Decrements the reference count of an object by 1 and returns the updated reference count
    int
    Increments the reference count of an object by 1 and returns the updated reference count
    long
    Returns the size of this map in bytes.

    Methods inherited from class it.unimi.dsi.fastutil.longs.Long2IntOpenHashMap

    addTo, clear, clone, compute, computeIfAbsent, computeIfAbsent, computeIfAbsentNullable, computeIfPresent, containsKey, containsValue, ensureCapacity, 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.AbstractLong2IntMap

    equals, mergeInt, toString

    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.Function

    apply

    Methods inherited from interface it.unimi.dsi.fastutil.longs.Long2IntFunction

    andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsInt, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort

    Methods inherited from interface it.unimi.dsi.fastutil.longs.Long2IntMap

    compute, computeIfAbsent, computeIfAbsentPartial, computeIfPresent, containsKey, containsValue, defaultReturnValue, defaultReturnValue, entrySet, forEach, get, getOrDefault, merge, mergeInt, put, putIfAbsent, remove, remove, replace, replace

    Methods inherited from interface java.util.Map

    replaceAll
  • Constructor Details

    • ReferenceCountMap

      public ReferenceCountMap()
  • Method Details

    • 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.