public final class QueryableStoreTypes extends Object
QueryableStoreType
s provided with KafkaStreams
.
These can be used with KafkaStreams.store(StoreQueryParameters)
.
To access and query the StateStore
s that are part of a Topology
.Modifier and Type | Class and Description |
---|---|
static class |
QueryableStoreTypes.KeyValueStoreType<K,V> |
static class |
QueryableStoreTypes.SessionStoreType<K,V> |
static class |
QueryableStoreTypes.WindowStoreType<K,V> |
Constructor and Description |
---|
QueryableStoreTypes() |
Modifier and Type | Method and Description |
---|---|
static <K,V> QueryableStoreType<ReadOnlyKeyValueStore<K,V>> |
keyValueStore()
A
QueryableStoreType that accepts ReadOnlyKeyValueStore . |
static <K,V> QueryableStoreType<ReadOnlySessionStore<K,V>> |
sessionStore()
A
QueryableStoreType that accepts ReadOnlySessionStore . |
static <K,V> QueryableStoreType<ReadOnlyKeyValueStore<K,ValueAndTimestamp<V>>> |
timestampedKeyValueStore()
A
QueryableStoreType that accepts ReadOnlyKeyValueStore . |
static <K,V> QueryableStoreType<ReadOnlyWindowStore<K,ValueAndTimestamp<V>>> |
timestampedWindowStore()
A
QueryableStoreType that accepts ReadOnlyWindowStore . |
static <K,V> QueryableStoreType<ReadOnlyWindowStore<K,V>> |
windowStore()
A
QueryableStoreType that accepts ReadOnlyWindowStore . |
public static <K,V> QueryableStoreType<ReadOnlyKeyValueStore<K,V>> keyValueStore()
QueryableStoreType
that accepts ReadOnlyKeyValueStore
.K
- key type of the storeV
- value type of the storeQueryableStoreTypes.KeyValueStoreType
public static <K,V> QueryableStoreType<ReadOnlyKeyValueStore<K,ValueAndTimestamp<V>>> timestampedKeyValueStore()
QueryableStoreType
that accepts ReadOnlyKeyValueStore>
.K
- key type of the storeV
- value type of the storeQueryableStoreTypes.TimestampedKeyValueStoreType
public static <K,V> QueryableStoreType<ReadOnlyWindowStore<K,V>> windowStore()
QueryableStoreType
that accepts ReadOnlyWindowStore
.K
- key type of the storeV
- value type of the storeQueryableStoreTypes.WindowStoreType
public static <K,V> QueryableStoreType<ReadOnlyWindowStore<K,ValueAndTimestamp<V>>> timestampedWindowStore()
QueryableStoreType
that accepts ReadOnlyWindowStore>
.K
- key type of the storeV
- value type of the storeQueryableStoreTypes.TimestampedWindowStoreType
public static <K,V> QueryableStoreType<ReadOnlySessionStore<K,V>> sessionStore()
QueryableStoreType
that accepts ReadOnlySessionStore
.K
- key type of the storeV
- value type of the storeQueryableStoreTypes.SessionStoreType