org.hypergraphdb.query.impl
Class UnionQuery

java.lang.Object
  extended by org.hypergraphdb.HGQuery
      extended by org.hypergraphdb.query.impl.UnionQuery
All Implemented Interfaces:
HGGraphHolder

public class UnionQuery
extends HGQuery

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.

Author:
Borislav Iordanov

Nested Class Summary
 
Nested classes/interfaces inherited from class org.hypergraphdb.HGQuery
HGQuery.hg
 
Field Summary
 
Fields inherited from class org.hypergraphdb.HGQuery
NOP
 
Constructor Summary
UnionQuery(HGQuery left, HGQuery right)
          Construct a union of two queries.
 
Method Summary
 HGSearchResult execute()
           
 
Methods inherited from class org.hypergraphdb.HGQuery
getHyperGraph, make, setHyperGraph
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnionQuery

public UnionQuery(HGQuery left,
                  HGQuery right)

Construct a union of two queries.

Parameters:
left - One of the two queries. May not be null.
right - The other of the two queries. May not be null.
Method Detail

execute

public HGSearchResult execute()
Specified by:
execute in class HGQuery