public class DefaultKeyBasedQuery<Key,Value> extends KeyBasedQuery<Key,Value>
HGQuery.hg| Constructor and Description |
|---|
DefaultKeyBasedQuery(HyperGraph graph,
HGQueryCondition cond,
ValueSetter<Key> setter) |
| Modifier and Type | Method and Description |
|---|---|
HGSearchResult<Value> |
execute()
Execute the query and return the result set.
|
Key |
getKey()
Retrieve the key object used to perform this query.
|
void |
setKey(Key key)
Specify the key on which this query operates.
|
compile, findAll, findInSet, findOne, getHyperGraph, initialValue, initialVar, make, make, NOP, setHyperGraph, var, varpublic DefaultKeyBasedQuery(HyperGraph graph, HGQueryCondition cond, ValueSetter<Key> setter)
public Key getKey()
KeyBasedQueryRetrieve the key object used to perform this query.
getKey in class KeyBasedQuery<Key,Value>public void setKey(Key key)
KeyBasedQuerySpecify the key on which this query operates.
setKey in class KeyBasedQuery<Key,Value>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 HGSearchResult<Value> execute()
HGQuery
Execute the query and return the result set. Note that queries are lazily executed so that
results are actually obtained when one iterates (using the next and prev
of the returned object).
Copyright © 2015. All rights reserved.