public class UnionQuery<T> extends HGQuery<T> implements Iterable<HGQuery<T>>
An UnionQuery
combines the results of two underlying
queries and produces a result set containing elements that appear
in either of the input result sets.
HGQuery.hg
Constructor and Description |
---|
UnionQuery(HGQuery<T> left,
HGQuery<T> right)
Construct a union of two queries.
|
Modifier and Type | Method and Description |
---|---|
HGSearchResult<T> |
execute()
Execute the query and return the result set.
|
Iterator<HGQuery<T>> |
iterator() |
compile, findAll, findInSet, findOne, getHyperGraph, initialValue, initialVar, make, make, NOP, setHyperGraph, var, var
public HGSearchResult<T> 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.