Class ACountHashMap<T>
- java.lang.Object
 - 
- org.apache.sysds.runtime.compress.utils.ACountHashMap<T>
 
 
- 
- All Implemented Interfaces:
 Cloneable
- Direct Known Subclasses:
 DblArrayCountHashMap,DoubleCountHashMap
public abstract class ACountHashMap<T> extends Object implements Cloneable
 
- 
- 
Constructor Summary
Constructors Constructor Description ACountHashMap()ACountHashMap(int arrSize) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ACount<T>[]extractValues()intget(T key)ACount<T>getC(T key)intgetId(T key)TgetMostFrequent()intgetOrDefault(T key, int def)intincrement(double key)intincrement(double key, int count)intincrement(T key)Increment and return the id of the incremented index.intincrement(T key, int count)Increment and return the id of the incremented index.voidreset(int size)intsize()voidsortBuckets()StringtoString() 
 - 
 
- 
- 
Method Detail
- 
size
public int size()
 
- 
increment
public final int increment(T key)
Increment and return the id of the incremented index.- Parameters:
 key- The key to increment- Returns:
 - The id of the incremented entry.
 
 
- 
increment
public final int increment(double key)
 
- 
increment
public int increment(T key, int count)
Increment and return the id of the incremented index.- Parameters:
 key- The key to incrementcount- The number of times to increment the value- Returns:
 - The Id of the incremented entry.
 
 
- 
increment
public final int increment(double key, int count) 
- 
get
public int get(T key)
 
- 
getId
public int getId(T key)
 
- 
getOrDefault
public int getOrDefault(T key, int def)
 
- 
getMostFrequent
public T getMostFrequent()
 
- 
sortBuckets
public void sortBuckets()
 
- 
reset
public void reset(int size)
 
 - 
 
 -