public static <K, V> RangeQuery<K, V> withRange(final K lower, final K upper) {
        return new RangeQuery<>(Optional.ofNullable(lower), Optional.ofNullable(upper), ResultOrder.ANY);
    }
Interactive range query using a lower and upper bound to filter the keys returned.
@param lower The key that specifies the lower bound of the range
@param upper The key that specifies the upper bound of the range
@param <K> The key type
@param <V> The value type
streams/src/main/java/org/apache/kafka/streams/query/RangeQuery.java