public class ResultMapQuery extends HGQuery implements java.lang.Iterable<HGQuery>
A HGQuery
that transforms the result of an underlying query
by applying a provided mapping.
HGQuery.hg
Constructor and Description |
---|
ResultMapQuery(HGQuery query,
Mapping mapping)
Create a query that transforms the output of a given query by
the specified mapping.
|
Modifier and Type | Method and Description |
---|---|
HGSearchResult |
execute()
Execute the query and return the result set.
|
Mapping |
getMapping() |
java.util.Iterator<HGQuery> |
iterator() |
void |
setMapping(Mapping mapping) |
compile, findAll, findInSet, findOne, getHyperGraph, initialValue, initialVar, make, make, NOP, setHyperGraph, var, var
public void setMapping(Mapping mapping)
public Mapping getMapping()
public HGSearchResult 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).