public class Long2DoubleKVTable extends KVTable<Long2DoubleKVPartition>
Constructor and Description |
---|
Long2DoubleKVTable(int tableID,
TypeDoubleCombiner combiner) |
Modifier and Type | Method and Description |
---|---|
void |
addKeyVal(long key,
double val)
Add a new key-value pair to the table.
|
double |
getVal(long key)
Get the value associated with the key
|
addPartition, free, getCombiner, getNumPartitions, getPartition, getPartitionIDs, getPartitions, getTableID, insertPartition, isEmpty, release, removePartition
public Long2DoubleKVTable(int tableID, TypeDoubleCombiner combiner)
public void addKeyVal(long key, double val)
key
- the keyval
- the valuepublic double getVal(long key)
key
- the key