public class PipeQuery<Key,Value> extends HGQuery<Value> implements java.lang.Iterable<HGQuery>
A PipeQuery
pipes the output of one query as the
input of another. The piped into query must be a KeyBasedQuery
.
HGQuery.hg
Constructor and Description |
---|
PipeQuery(HGQuery<Key> in,
KeyBasedQuery<Key,Value> out) |
Modifier and Type | Method and Description |
---|---|
HGSearchResult<Value> |
execute()
Execute the query and return the result set.
|
java.util.Iterator<HGQuery> |
iterator() |
compile, findAll, findInSet, findOne, getHyperGraph, initialValue, initialVar, make, make, NOP, setHyperGraph, var, var
public PipeQuery(HGQuery<Key> in, KeyBasedQuery<Key,Value> out)
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).