R - The type of the query result.@InterfaceStability.Evolving public class StateQueryRequest<R> extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | StateQueryRequest.InStoreA progressive builder interface for creating  StoreQueryRequests. | 
| Modifier and Type | Method and Description | 
|---|---|
| StateQueryRequest<R> | enableExecutionInfo()Requests for stores and the Streams runtime to record any useful details about how the query
 was executed. | 
| boolean | executionInfoEnabled()Whether the request includes detailed execution information. | 
| Set<Integer> | getPartitions()If the request is for specific partitions, return the set of partitions to query. | 
| PositionBound | getPositionBound()The bound that this request places on its query, in terms of the partitions' positions
 against its inputs. | 
| Query<R> | getQuery()The query this request is meant to run. | 
| String | getStoreName()The name of the store this request is for. | 
| static StateQueryRequest.InStore | inStore(String name)Specifies the name of the store to query. | 
| boolean | isAllPartitions()Whether this request should fetch from all locally available partitions. | 
| boolean | isRequireActive()Whether this request requires the query to execute only on active partitions. | 
| StateQueryRequest<R> | requireActive()Specifies that this query should only run on partitions for which this instance is the leader
 (aka "active"). | 
| StateQueryRequest<R> | withAllPartitions()Specifies that the query will run against all locally available partitions. | 
| StateQueryRequest<R> | withPartitions(Set<Integer> partitions)Specifies a set of partitions to run against. | 
| StateQueryRequest<R> | withPositionBound(PositionBound positionBound)Bounds the position of the state store against its input topics. | 
public static StateQueryRequest.InStore inStore(String name)
public StateQueryRequest<R> withPositionBound(PositionBound positionBound)
public StateQueryRequest<R> withAllPartitions()
public StateQueryRequest<R> withPartitions(Set<Integer> partitions)
FailureReason.NOT_PRESENT for those partitions. If some
 partitions in this set are not valid partitions for the store, the response will contain a
 FailureReason.DOES_NOT_EXIST for those partitions.public StateQueryRequest<R> enableExecutionInfo()
public StateQueryRequest<R> requireActive()
FailureReason.NOT_ACTIVE.public String getStoreName()
public PositionBound getPositionBound()
public boolean isAllPartitions()
public Set<Integer> getPartitions()
IllegalStateException - if this is a request for all partitionspublic boolean executionInfoEnabled()
public boolean isRequireActive()