Class DoubleCountHashMap
- java.lang.Object
- 
- org.apache.sysds.runtime.compress.utils.DoubleCountHashMap
 
- 
 public class DoubleCountHashMap extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description DoubleCountHashMap(int init_capacity)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description DCounts[]extractValues()intget(double key)Get the value on a key, if the key is not inside a NullPointerException is thrown.double[]getDictionary()doublegetMostFrequent()intgetOrDefault(double key, int def)int[]getUnorderedCountsAndReplaceWithUIDs()int[]getUnorderedCountsAndReplaceWithUIDsWithout0()intincrement(double key)intincrement(double key, int count)voidreplaceWithUIDs()voidreplaceWithUIDsNoZero()voidreset(int size)intsize()StringtoString()
 
- 
- 
- 
Method Detail- 
sizepublic int size() 
 - 
incrementpublic final int increment(double key) 
 - 
incrementpublic final int increment(double key, int count)
 - 
getpublic int get(double key) Get the value on a key, if the key is not inside a NullPointerException is thrown.- Parameters:
- key- the key to lookup
- Returns:
- count on key
 
 - 
getOrDefaultpublic int getOrDefault(double key, int def)
 - 
extractValuespublic DCounts[] extractValues() 
 - 
replaceWithUIDspublic void replaceWithUIDs() 
 - 
replaceWithUIDsNoZeropublic void replaceWithUIDsNoZero() 
 - 
getUnorderedCountsAndReplaceWithUIDspublic int[] getUnorderedCountsAndReplaceWithUIDs() 
 - 
getUnorderedCountsAndReplaceWithUIDsWithout0public int[] getUnorderedCountsAndReplaceWithUIDsWithout0() 
 - 
getMostFrequentpublic double getMostFrequent() 
 - 
getDictionarypublic double[] getDictionary() 
 - 
resetpublic void reset(int size) 
 
- 
 
-