public interface Store<K,V> extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
V |
delete(K key) |
void |
flush() |
V |
get(K key) |
CloseableIterator<V> |
getAll(K key1,
K key2)
Iterator over keys in the specified range
|
CloseableIterator<K> |
getAllKeys() |
void |
init() |
default boolean |
isPersistent()
Whether the store is persistent.
|
V |
put(K key,
V value) |
void |
putAll(Map<K,V> entries) |
default boolean isPersistent()
void init() throws StoreInitializationException
StoreInitializationExceptionV get(K key) throws StoreException
StoreExceptionV put(K key, V value) throws StoreException
StoreExceptionCloseableIterator<V> getAll(K key1, K key2) throws StoreException
key1 - If key1 is null, start from the first key in sorted orderkey2 - If key2 is null, end at the last keyStoreExceptionvoid putAll(Map<K,V> entries) throws StoreException
StoreExceptionV delete(K key) throws StoreException
StoreExceptionCloseableIterator<K> getAllKeys() throws StoreException
StoreExceptionvoid flush()
throws StoreException
StoreExceptionvoid close()
throws StoreException
close in interface AutoCloseableStoreExceptionCopyright © 2026 Confluent, Inc.. All rights reserved.