@InterfaceStability.Evolving public final class RangeQuery<K,V> extends Object implements Query<KeyValueIterator<K,V>>
A range query retrieves a set of records, specified using an upper and/or lower bound on the keys.
A scan query retrieves all records contained in the store.
| Modifier and Type | Method and Description | 
|---|---|
| Optional<K> | getLowerBound()The lower bound of the query, if specified. | 
| Optional<K> | getUpperBound()The upper bound of the query, if specified | 
| static <K,V> RangeQuery<K,V> | withLowerBound(K lower)Interactive range query using a lower bound to filter the keys returned. | 
| static <K,V> RangeQuery<K,V> | withNoBounds()Interactive scan query that returns all records in the store. | 
| static <K,V> RangeQuery<K,V> | withRange(K lower,
         K upper)Interactive range query using a lower and upper bound to filter the keys returned. | 
| static <K,V> RangeQuery<K,V> | withUpperBound(K upper)Interactive range query using an upper bound to filter the keys returned. | 
public static <K,V> RangeQuery<K,V> withRange(K lower, K upper)
K - The key typeV - The value typelower - The key that specifies the lower bound of the rangeupper - The key that specifies the upper bound of the rangepublic static <K,V> RangeQuery<K,V> withUpperBound(K upper)
K - The key typeV - The value typeupper - The key that specifies the upper bound of the rangepublic static <K,V> RangeQuery<K,V> withLowerBound(K lower)
K - The key typeV - The value typelower - The key that specifies the lower bound of the rangepublic static <K,V> RangeQuery<K,V> withNoBounds()
K - The key typeV - The value type