public abstract class KeyBasedQuery<Key,Value> extends HGQuery<Value>
A KeyBasedQuery
is a HGQuery
that produces
a result based on a single key value. A query implementation that
supports this interface allows the client to set a different key and
execute the query possibly multiple times, in order to obtain a different
result.
HGQuery.hg
Constructor and Description |
---|
KeyBasedQuery() |
Modifier and Type | Method and Description |
---|---|
abstract Key |
getKey()
Retrieve the key object used to perform this query.
|
abstract void |
setKey(Key key)
Specify the key on which this query operates.
|
compile, execute, findAll, findInSet, findOne, getHyperGraph, initialValue, initialVar, make, make, NOP, setHyperGraph, var, var
public abstract void setKey(Key key)
Specify the key on which this query operates.
key
- The key object. The value may be interpreted differently
based on the concrete HGQuery
instance. Usually it
should be either a byte []
or convertible to one.public abstract Key getKey()
Retrieve the key object used to perform this query.
Copyright © 2015. All rights reserved.