K - the type of the key in this tableV - the type of the value in this table@InterfaceStability.Unstable public interface ReadWriteTable<K,V> extends AsyncReadWriteTable<K,V>
| Modifier and Type | Method and Description |
|---|---|
void |
delete(K key,
java.lang.Object... args)
Deletes the mapping for the specified
key from this table (if such mapping exists). |
void |
deleteAll(java.util.List<K> keys,
java.lang.Object... args)
Deletes the mappings for the specified
keys from this table. |
V |
get(K key,
java.lang.Object... args)
Gets the value associated with the specified
key. |
java.util.Map<K,V> |
getAll(java.util.List<K> keys,
java.lang.Object... args)
Gets the values with which the specified
keys are associated. |
void |
put(K key,
V value,
java.lang.Object... args)
Updates the mapping of the specified key-value pair;
Associates the specified
key with the specified value. |
void |
putAll(java.util.List<Entry<K,V>> entries,
java.lang.Object... args)
Updates the mappings of the specified key-value
entries. |
default <T> T |
read(int opId,
java.lang.Object... args)
Executes a read operation.
|
default <T> T |
write(int opId,
java.lang.Object... args)
Executes a write operation.
|
close, deleteAllAsync, deleteAsync, flush, getAllAsync, getAsync, init, putAllAsync, putAsync, readAsync, writeAsyncV get(K key, java.lang.Object... args)
key.key - the key with which the associated value is to be fetched.args - additional argumentskey; otherwise, null.java.lang.NullPointerException - if the specified key is null.java.util.Map<K,V> getAll(java.util.List<K> keys, java.lang.Object... args)
keys are associated.keys - the keys with which the associated values are to be fetched.args - additional argumentsjava.lang.NullPointerException - if the specified keys list, or any of the keys, is null.default <T> T read(int opId,
java.lang.Object... args)
T - return typeopId - operation identifierargs - additional argumentsvoid put(K key, V value, java.lang.Object... args)
key with the specified value.
The key is deleted from the table if value is null.key - the key with which the specified value is to be associated.value - the value with which the specified key is to be associated.args - additional argumentsjava.lang.NullPointerException - if the specified key is null.void putAll(java.util.List<Entry<K,V>> entries, java.lang.Object... args)
entries.
A key is deleted from the table if its corresponding value is null.entries - the updated mappings to put into this table.args - additional argumentsjava.lang.NullPointerException - if any of the specified entries has null as key.void delete(K key, java.lang.Object... args)
key from this table (if such mapping exists).key - the key for which the mapping is to be deleted.args - additional argumentsjava.lang.NullPointerException - if the specified key is null.void deleteAll(java.util.List<K> keys, java.lang.Object... args)
keys from this table.keys - the keys for which the mappings are to be deleted.args - additional argumentsjava.lang.NullPointerException - if the specified keys list, or any of the keys, is null.default <T> T write(int opId,
java.lang.Object... args)
T - return typeopId - operation identifierargs - additional arguments