Package org.apache.kafka.streams.state
Class QueryableStoreTypes
java.lang.Object
org.apache.kafka.streams.state.QueryableStoreTypes
public final class QueryableStoreTypes extends Object
Provides access to the
QueryableStoreTypes provided with KafkaStreams.
These can be used with KafkaStreams.store(StoreQueryParameters).
To access and query the StateStores that are part of a Topology.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQueryableStoreTypes.KeyValueStoreType<K,V>static classQueryableStoreTypes.SessionStoreType<K,V>static classQueryableStoreTypes.WindowStoreType<K,V> -
Constructor Summary
Constructors Constructor Description QueryableStoreTypes() -
Method Summary
Modifier and Type Method Description static <K, V> QueryableStoreType<ReadOnlyKeyValueStore<K,V>>keyValueStore()AQueryableStoreTypethat acceptsReadOnlyKeyValueStore.static <K, V> QueryableStoreType<ReadOnlySessionStore<K,V>>sessionStore()AQueryableStoreTypethat acceptsReadOnlySessionStore.static <K, V> QueryableStoreType<ReadOnlyKeyValueStore<K,ValueAndTimestamp<V>>>timestampedKeyValueStore()AQueryableStoreTypethat acceptsReadOnlyKeyValueStore.> static <K, V> QueryableStoreType<ReadOnlyWindowStore<K,ValueAndTimestamp<V>>>timestampedWindowStore()AQueryableStoreTypethat acceptsReadOnlyWindowStore.> static <K, V> QueryableStoreType<ReadOnlyWindowStore<K,V>>windowStore()AQueryableStoreTypethat acceptsReadOnlyWindowStore.
-
Constructor Details
-
QueryableStoreTypes
public QueryableStoreTypes()
-
-
Method Details
-
keyValueStore
AQueryableStoreTypethat acceptsReadOnlyKeyValueStore.- Type Parameters:
K- key type of the storeV- value type of the store- Returns:
QueryableStoreTypes.KeyValueStoreType
-
timestampedKeyValueStore
public static <K, V> QueryableStoreType<ReadOnlyKeyValueStore<K,ValueAndTimestamp<V>>> timestampedKeyValueStore()AQueryableStoreTypethat acceptsReadOnlyKeyValueStore.> - Type Parameters:
K- key type of the storeV- value type of the store- Returns:
QueryableStoreTypes.TimestampedKeyValueStoreType
-
windowStore
AQueryableStoreTypethat acceptsReadOnlyWindowStore.- Type Parameters:
K- key type of the storeV- value type of the store- Returns:
QueryableStoreTypes.WindowStoreType
-
timestampedWindowStore
public static <K, V> QueryableStoreType<ReadOnlyWindowStore<K,ValueAndTimestamp<V>>> timestampedWindowStore()AQueryableStoreTypethat acceptsReadOnlyWindowStore.> - Type Parameters:
K- key type of the storeV- value type of the store- Returns:
QueryableStoreTypes.TimestampedWindowStoreType
-
sessionStore
AQueryableStoreTypethat acceptsReadOnlySessionStore.- Type Parameters:
K- key type of the storeV- value type of the store- Returns:
QueryableStoreTypes.SessionStoreType
-