Interface LocalStoreQuery<K,V>
-
- All Known Implementing Classes:
KeyedLocalStoreQuery
,KeyValueCountQuery
,KeyValueGetAllQuery
,KeyValueGetQuery
,KeyValueGetRangeQuery
,SessionFetchKeyRangeQuery
,SessionFetchQuery
,TimestampedKeyValueGetAllQuery
,TimestampedKeyValueGetQuery
,TimestampedKeyValueGetRangeQuery
,TimestampedWindowFetchAllQuery
,TimestampedWindowFetchKeyRangeQuery
,TimestampedWindowFetchQuery
,TimestampedWindowFetchTimeRangeQuery
,TimestampedWindowGetAllQuery
,WindowFetchAllQuery
,WindowFetchKeyRangeQuery
,WindowFetchQuery
,WindowFetchTimeRangeQuery
,WindowGetAllQuery
public interface LocalStoreQuery<K,V>
Default interface to execute a local state storeName.
-
-
Field Summary
Fields Modifier and Type Field Description static int
NO_LIMIT
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Try<List<KV<K,V>>>
execute(KafkaStreamsContainer container)
Executes this query to the specified KafkaStreams application.Try<List<KV<K,V>>>
execute(KafkaStreamsContainer container, long limit)
Executes this query to the specified KafkaStreams application.StoreOperation
operationType()
The operation type supported by this query.StoreType
storeType()
The storeName type on which this query can be executed.static <K,V>
List<KV<K,V>>toKeyValueAndTimestampListAndClose(org.apache.kafka.streams.state.KeyValueIterator<K,org.apache.kafka.streams.state.ValueAndTimestamp<V>> it, long limit)
static <K,V>
List<KV<K,V>>toKeyValueListAndClose(org.apache.kafka.streams.state.KeyValueIterator<K,V> it, long limit)
-
-
-
Field Detail
-
NO_LIMIT
static final int NO_LIMIT
- See Also:
- Constant Field Values
-
-
Method Detail
-
storeType
StoreType storeType()
The storeName type on which this query can be executed.- Returns:
- a new
StoreOperation
instance.
-
operationType
StoreOperation operationType()
The operation type supported by this query.- Returns:
- a new
StoreOperation
instance.
-
execute
default Try<List<KV<K,V>>> execute(KafkaStreamsContainer container)
Executes this query to the specified KafkaStreams application.- Parameters:
container
- theKafkaStreamsContainer
instance.
-
execute
Try<List<KV<K,V>>> execute(KafkaStreamsContainer container, long limit)
Executes this query to the specified KafkaStreams application.- Parameters:
container
- theKafkaStreamsContainer
instance.limit
- the maximum number of records the result should be limited to (-1 means no limit).
-
toKeyValueListAndClose
static <K,V> List<KV<K,V>> toKeyValueListAndClose(org.apache.kafka.streams.state.KeyValueIterator<K,V> it, long limit)
-
-