public StateQueryRequest<R> withAllPartitions() {
        return new StateQueryRequest<>(
            storeName,
            position,
            Optional.empty(),
            query,
            executionInfoEnabled,
            requireActive
        );
    }
Specifies that the query will run against all locally available partitions.
streams/src/main/java/org/apache/kafka/streams/query/StateQueryRequest.java