public abstract class Int2ValKVTable<V extends Value,P extends Int2ValKVPartition<V>> extends KVTable<P>
Constructor and Description |
---|
Int2ValKVTable(int tableID,
ValCombiner<V> combiner,
java.lang.Class<V> vClass,
java.lang.Class<P> pClass) |
Modifier and Type | Method and Description |
---|---|
ValStatus |
addKeyVal(int key,
V val)
Add a new key-value pair to the table.
|
protected int |
getKVPartitionID(int key)
Get the partition Id by key
|
V |
getVal(int key)
Get the value associated with the key
|
V |
removeVal(int key)
Remove the value associated with the key
|
addPartition, free, getCombiner, getNumPartitions, getPartition, getPartitionIDs, getPartitions, getTableID, insertPartition, isEmpty, release, removePartition
public Int2ValKVTable(int tableID, ValCombiner<V> combiner, java.lang.Class<V> vClass, java.lang.Class<P> pClass)
public ValStatus addKeyVal(int key, V val)
key
- the keyval
- the valuepublic V getVal(int key)
key
- the keypublic V removeVal(int key)
key
- the keyprotected int getKVPartitionID(int key)
key
- the key