Class DoubleIntListHashMap

java.lang.Object
org.apache.sysds.runtime.compress.utils.DoubleIntListHashMap

public class DoubleIntListHashMap extends Object
This class provides a memory-efficient replacement for HashMap<Double,IntArrayList> for restricted use cases.
  • Field Details

    • hashMissCount

      public static int hashMissCount
  • Constructor Details

    • DoubleIntListHashMap

      public DoubleIntListHashMap()
    • DoubleIntListHashMap

      public DoubleIntListHashMap(int init_capacity)
  • Method Details

    • size

      public int size()
    • get

      public IntArrayList get(double key)
    • appendValue

      public void appendValue(double key, int value)
      Append value into the hashmap, but ignore all zero keys.
      Parameters:
      key - The key to add the value to
      value - The value to add
    • extractValues

    • toString

      public String toString()
      Overrides:
      toString in class Object