public void addResult(final int partition, final QueryResult<R> r) {
        partitionResults.put(partition, r);
    }
Set the result for a partitioned store query. Used by Kafka Streams and available for tests.
streams/src/main/java/org/apache/kafka/streams/query/StateQueryResult.java