Class HugeLongDoubleMap

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

    public class HugeLongDoubleMap
    extends java.lang.Object
    implements java.lang.Iterable<com.carrotsearch.hppc.cursors.LongDoubleCursor>
    • Constructor Summary

      Constructors 
      Constructor Description
      HugeLongDoubleMap()
      New instance with sane defaults.
      HugeLongDoubleMap​(long expectedElements)
      New instance with sane defaults.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addTo​(long key, double value)  
      void clear()  
      double getOrDefault​(long key, double defaultValue)  
      boolean isEmpty()  
      java.util.Iterator<com.carrotsearch.hppc.cursors.LongDoubleCursor> iterator()  
      static org.neo4j.gds.core.utils.mem.MemoryEstimation memoryEstimation()  
      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

      • HugeLongDoubleMap

        public HugeLongDoubleMap()
        New instance with sane defaults.
      • HugeLongDoubleMap

        public HugeLongDoubleMap​(long expectedElements)
        New instance with sane defaults.
    • Method Detail

      • memoryEstimation

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

        public long sizeOf()
      • addTo

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

        public double getOrDefault​(long key,
                                   double defaultValue)
      • 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.LongDoubleCursor> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<com.carrotsearch.hppc.cursors.LongDoubleCursor>
      • toString

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