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 ReadableTable<K,V>
Modifier and Type | Method and Description |
---|---|
void |
delete(K key)
Deletes the mapping for the specified
key from this table (if such mapping exists). |
void |
deleteAll(java.util.List<K> keys)
Deletes the mappings for the specified
keys from this table. |
java.util.concurrent.CompletableFuture<java.lang.Void> |
deleteAllAsync(java.util.List<K> keys)
Asynchronously deletes the mappings for the specified
keys from this table. |
java.util.concurrent.CompletableFuture<java.lang.Void> |
deleteAsync(K key)
Asynchronously deletes the mapping for the specified
key from this table (if such mapping exists). |
void |
flush()
Flushes the underlying store of this table, if applicable.
|
void |
put(K key,
V value)
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)
Updates the mappings of the specified key-value
entries . |
java.util.concurrent.CompletableFuture<java.lang.Void> |
putAllAsync(java.util.List<Entry<K,V>> entries)
Asynchronously updates the mappings of the specified key-value
entries . |
java.util.concurrent.CompletableFuture<java.lang.Void> |
putAsync(K key,
V value)
Asynchronously updates the mapping of the specified key-value pair;
Associates the specified
key with the specified value . |
close, get, getAll, getAllAsync, getAsync, init
void put(K key, V value)
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.java.lang.NullPointerException
- if the specified key
is null
.java.util.concurrent.CompletableFuture<java.lang.Void> putAsync(K key, V value)
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.java.lang.NullPointerException
- if the specified key
is null
.void putAll(java.util.List<Entry<K,V>> entries)
entries
.
A key is deleted from the table if its corresponding value is null
.entries
- the updated mappings to put into this table.java.lang.NullPointerException
- if any of the specified entries
has null
as key.java.util.concurrent.CompletableFuture<java.lang.Void> putAllAsync(java.util.List<Entry<K,V>> entries)
entries
.
A key is deleted from the table if its corresponding value is null
.entries
- the updated mappings to put into this table.java.lang.NullPointerException
- if any of the specified entries
has null
as key.void delete(K key)
key
from this table (if such mapping exists).key
- the key for which the mapping is to be deleted.java.lang.NullPointerException
- if the specified key
is null
.java.util.concurrent.CompletableFuture<java.lang.Void> deleteAsync(K key)
key
from this table (if such mapping exists).key
- the key for which the mapping is to be deleted.java.lang.NullPointerException
- if the specified key
is null
.void deleteAll(java.util.List<K> keys)
keys
from this table.keys
- the keys for which the mappings are to be deleted.java.lang.NullPointerException
- if the specified keys
list, or any of the keys, is null
.java.util.concurrent.CompletableFuture<java.lang.Void> deleteAllAsync(java.util.List<K> keys)
keys
from this table.keys
- the keys for which the mappings are to be deleted.java.lang.NullPointerException
- if the specified keys
list, or any of the keys, is null
.void flush()