Class HugeLongLongMap

  • All Implemented Interfaces:
    java.lang.Iterable<com.carrotsearch.hppc.cursors.LongLongCursor>

    public final class HugeLongLongMap
    extends java.lang.Object
    implements java.lang.Iterable<com.carrotsearch.hppc.cursors.LongLongCursor>
    map with long=>long mapping and huge underlying storage, so it can store more than 2B values
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addTo​(long key, long value)  
      void clear()  
      boolean containsKey​(long key)  
      long getOrDefault​(long key, long defaultValue)  
      boolean isEmpty()  
      java.util.Iterator<com.carrotsearch.hppc.cursors.LongLongCursor> iterator()  
      static org.neo4j.gds.core.utils.mem.MemoryEstimation memoryEstimation()  
      void put​(long key, long value)  
      void release()  
      long size()  
      long sizeOf()  
      java.lang.String toString()
      Convert the contents of this map to a human-friendly string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • HugeLongLongMap

        public HugeLongLongMap​(AllocationTracker allocationTracker)
        New instance with sane defaults.
      • HugeLongLongMap

        public HugeLongLongMap​(long expectedElements,
                               AllocationTracker allocationTracker)
        New instance with sane defaults.
    • Method Detail

      • memoryEstimation

        public static org.neo4j.gds.core.utils.mem.MemoryEstimation memoryEstimation()
      • sizeOf

        public long sizeOf()
      • put

        public void put​(long key,
                        long value)
      • addTo

        public void addTo​(long key,
                          long value)
      • getOrDefault

        public long getOrDefault​(long key,
                                 long defaultValue)
      • containsKey

        public boolean containsKey​(long key)
      • size

        public long size()
      • isEmpty

        public boolean isEmpty()
      • clear

        public void clear()
      • release

        public void release()
      • iterator

        public java.util.Iterator<com.carrotsearch.hppc.cursors.LongLongCursor> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<com.carrotsearch.hppc.cursors.LongLongCursor>
      • toString

        public java.lang.String toString()
        Convert the contents of this map to a human-friendly string.
        Overrides:
        toString in class java.lang.Object