Class DblArrayCountHashMap
- java.lang.Object
 - 
- org.apache.sysds.runtime.compress.utils.DblArrayCountHashMap
 
 
- 
public class DblArrayCountHashMap extends Object
 
- 
- 
Constructor Summary
Constructors Constructor Description DblArrayCountHashMap(int init_capacity, int cols) 
- 
Method Summary
All 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
- 
size
public int size()
 
- 
increment
public 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.
 
 
- 
get
public 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
 
 
- 
extractValues
public ArrayList<DArrCounts> extractValues()
 
- 
replaceWithUIDs
public void replaceWithUIDs()
 
- 
getSumCounts
public int getSumCounts()
 
- 
getUnorderedCountsAndReplaceWithUIDs
public int[] getUnorderedCountsAndReplaceWithUIDs()
 
- 
getUnorderedCountsAndReplaceWithUIDsWithExtraCell
public int[] getUnorderedCountsAndReplaceWithUIDsWithExtraCell()
 
- 
reset
public void reset(int size)
 
 - 
 
 -