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 SummaryNested Classes Modifier and Type Class Description static classDoubleIntListHashMap.DIListEntry
 - 
Field SummaryFields Modifier and Type Field Description static inthashMissCount
 - 
Constructor SummaryConstructors Constructor Description DoubleIntListHashMap()DoubleIntListHashMap(int init_capacity)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendValue(double key, int value)Append value into the hashmap, but ignore all zero keys.ArrayList<DoubleIntListHashMap.DIListEntry>extractValues()IntArrayListget(double key)intsize()StringtoString()
 
- 
- 
- 
Method Detail- 
sizepublic int size() 
 - 
getpublic IntArrayList get(double key) 
 - 
appendValuepublic 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
 
 - 
extractValuespublic ArrayList<DoubleIntListHashMap.DIListEntry> extractValues() 
 
- 
 
-