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