public Position getPosition() {
        if (globalResult != null) {
            return globalResult.getPosition();
        } else {
            final Position position = Position.emptyPosition();
            for (final QueryResult<R> r : partitionResults.values()) {
                position.merge(r.getPosition());
            }
            return position;
        }
    }
The position of the state store at the moment it executed the query. In conjunction with
{@link StateQueryRequest#withPositionBound}, this can be used to achieve a good balance
between consistency and availability in which repeated queries are guaranteed to advance in
time while allowing reads to be served from any replica that is caught up to that caller's
prior observations.
streams/src/main/java/org/apache/kafka/streams/query/StateQueryResult.java