K
- Type of keysV
- Type of values@InterfaceStability.Evolving public final class TimestampedKeyQuery<K,V> extends Object implements Query<ValueAndTimestamp<V>>
TimestampedKeyValueStore
Modifier and Type | Method and Description |
---|---|
boolean |
isSkipCache()
The flag whether to skip the cache or not during query evaluation.
|
K |
key()
Return the key that was specified for this query.
|
TimestampedKeyQuery<K,V> |
skipCache()
Specifies that the cache should be skipped during query evaluation.
|
static <K,V> TimestampedKeyQuery<K,V> |
withKey(K key)
Creates a query that will retrieve the record identified by
key if it exists
(or null otherwise). |
public static <K,V> TimestampedKeyQuery<K,V> withKey(K key)
key
if it exists
(or null
otherwise).K
- The type of the keyV
- The type of the value that will be retrievedkey
- The key to retrievepublic TimestampedKeyQuery<K,V> skipCache()
public K key()
public boolean isSkipCache()