org.apache.sysds.runtime.compress.utils

## Class DoubleIntListHashMap

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

-     public class DoubleIntListHashMap
      extends CustomHashMap

  This class provides a memory-efficient replacement for `HashMap<Double,IntArrayList>` for restricted use cases. TODO: Fix allocation of size such that it contains some amount of overhead from the start, to enable hashmap performance.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DoubleIntListHashMap.DIListEntry`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DoubleIntListHashMap()`
    `DoubleIntListHashMap(int init_capacity)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `appendValue(double key, int value)`
    `void` | `appendValue(double key, IntArrayList value)`
    `ArrayList<DoubleIntListHashMap.DIListEntry>` | `extractValues()`
    `IntArrayList` | `get(double key)`
    `String` | `toString()`

    - ### Methods inherited from class org.apache.sysds.runtime.compress.utils.CustomHashMap

      `joinHashMap, joinHashMaps, size`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### DoubleIntListHashMap

          public DoubleIntListHashMap()

    - #### DoubleIntListHashMap

          public DoubleIntListHashMap(int init_capacity)

  - ### Method Detail

    - #### get

          public IntArrayList get(double key)

    - #### appendValue

          public void appendValue(double key,
                                  IntArrayList value)

    - #### appendValue

          public void appendValue(double key,
                                  int value)

    - #### extractValues

          public ArrayList<DoubleIntListHashMap.DIListEntry> extractValues()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2021 The Apache Software Foundation. All rights reserved.