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