K
- the type of the record key in this tableV
- the type of the record value in this table@InterfaceStability.Unstable public interface ReadableTable<K,V> extends Table<KV<K,V>>
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the table and release any resources acquired
|
V |
get(K key)
Gets the value associated with the specified
key . |
java.util.Map<K,V> |
getAll(java.util.List<K> keys)
Gets the values with which the specified
keys are associated. |
java.util.concurrent.CompletableFuture<java.util.Map<K,V>> |
getAllAsync(java.util.List<K> keys)
Asynchronously gets the values with which the specified
keys are associated. |
java.util.concurrent.CompletableFuture<V> |
getAsync(K key)
Asynchronously gets the value associated with the specified
key . |
default void |
init(Context context)
Initializes the table during container initialization.
|
default void init(Context context)
context
- Context
corresponding to this tableV get(K key)
key
.key
- the key with which the associated value is to be fetched.key
; otherwise, null
.java.lang.NullPointerException
- if the specified key
is null
.java.util.concurrent.CompletableFuture<V> getAsync(K key)
key
.key
- the key with which the associated value is to be fetched.java.lang.NullPointerException
- if the specified key
is null
.java.util.Map<K,V> getAll(java.util.List<K> keys)
keys
are associated.keys
- the keys with which the associated values are to be fetched.java.lang.NullPointerException
- if the specified keys
list, or any of the keys, is null
.java.util.concurrent.CompletableFuture<java.util.Map<K,V>> getAllAsync(java.util.List<K> keys)
keys
are associated.keys
- the keys with which the associated values are to be fetched.java.lang.NullPointerException
- if the specified keys
list, or any of the keys, is null
.void close()