Class DblArrayCountHashMap
- java.lang.Object
- 
- org.apache.sysds.runtime.compress.utils.DblArrayCountHashMap
 
- 
 public class DblArrayCountHashMap extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description DblArrayCountHashMap(int init_capacity, int cols)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayList<DArrCounts>extractValues()intget(DblArray key)Get the value on a key, if the key is not inside a NullPointerException is thrown.intgetSumCounts()int[]getUnorderedCountsAndReplaceWithUIDs()int[]getUnorderedCountsAndReplaceWithUIDsWithExtraCell()intincrement(DblArray key)Increment the key, and return the Id of the value incremented.voidreplaceWithUIDs()voidreset(int size)intsize()StringtoString()
 
- 
- 
- 
Method Detail- 
sizepublic int size() 
 - 
incrementpublic int increment(DblArray key) Increment the key, and return the Id of the value incremented.- Parameters:
- key- DblArray key
- Returns:
- The Unique ID of the value contained.
 
 - 
getpublic int get(DblArray 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
 
 - 
extractValuespublic ArrayList<DArrCounts> extractValues() 
 - 
replaceWithUIDspublic void replaceWithUIDs() 
 - 
getSumCountspublic int getSumCounts() 
 - 
getUnorderedCountsAndReplaceWithUIDspublic int[] getUnorderedCountsAndReplaceWithUIDs() 
 - 
getUnorderedCountsAndReplaceWithUIDsWithExtraCellpublic int[] getUnorderedCountsAndReplaceWithUIDsWithExtraCell() 
 - 
resetpublic void reset(int size) 
 
- 
 
-