K
- key typeV
- value typepublic class CompositeReadOnlyKeyValueStore<K,V> extends java.lang.Object implements ReadOnlyKeyValueStore<K,V>
ReadOnlyKeyValueStore
s found in a ProcessorTopology
Constructor and Description |
---|
CompositeReadOnlyKeyValueStore(StateStoreProvider storeProvider,
QueryableStoreType<ReadOnlyKeyValueStore<K,V>> storeType,
java.lang.String storeName) |
Modifier and Type | Method and Description |
---|---|
KeyValueIterator<K,V> |
all()
Return an iterator over all keys in this store.
|
long |
approximateNumEntries()
Return an approximate count of key-value mappings in this store.
|
V |
get(K key)
Get the value corresponding to this key.
|
KeyValueIterator<K,V> |
range(K from,
K to)
Get an iterator over a given range of keys.
|
public CompositeReadOnlyKeyValueStore(StateStoreProvider storeProvider, QueryableStoreType<ReadOnlyKeyValueStore<K,V>> storeType, java.lang.String storeName)
public V get(K key)
ReadOnlyKeyValueStore
get
in interface ReadOnlyKeyValueStore<K,V>
key
- The key to fetchpublic KeyValueIterator<K,V> range(K from, K to)
ReadOnlyKeyValueStore
ConcurrentModificationException
s
and must not return null values. No ordering guarantees are provided.range
in interface ReadOnlyKeyValueStore<K,V>
from
- The first key that could be in the rangeto
- The last key that could be in the rangepublic KeyValueIterator<K,V> all()
ReadOnlyKeyValueStore
ConcurrentModificationException
s
and must not return null values. No ordering guarantees are provided.all
in interface ReadOnlyKeyValueStore<K,V>
public long approximateNumEntries()
ReadOnlyKeyValueStore
approximateNumEntries
in interface ReadOnlyKeyValueStore<K,V>