Class DoubleIntListHashMap
- java.lang.Object
-
- org.apache.sysds.runtime.compress.utils.DoubleIntListHashMap
-
public class DoubleIntListHashMap extends Object
This class provides a memory-efficient replacement forHashMap<Double,IntArrayList>
for restricted use cases.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DoubleIntListHashMap.DIListEntry
-
Field Summary
Fields Modifier and Type Field Description static int
hashMissCount
-
Constructor Summary
Constructors Constructor Description DoubleIntListHashMap()
DoubleIntListHashMap(int init_capacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendValue(double key, int value)
Append value into the hashmap, but ignore all zero keys.ArrayList<DoubleIntListHashMap.DIListEntry>
extractValues()
IntArrayList
get(double key)
int
size()
String
toString()
-
-
-
Method Detail
-
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 tovalue
- The value to add
-
extractValues
public ArrayList<DoubleIntListHashMap.DIListEntry> extractValues()
-
-