Modifier and Type | Method and Description |
---|---|
K |
getKey()
Return the key that was specified for this query.
|
boolean |
isSkipCache()
The flag whether to skip the cache or not during query evaluation.
|
KeyQuery<K,V> |
skipCache()
Specifies that the cache should be skipped during query evaluation.
|
static <K,V> KeyQuery<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> KeyQuery<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 KeyQuery<K,V> skipCache()
public K getKey()
public boolean isSkipCache()