org.openrdf.sesame.query.rql.model
Class Union

java.lang.Object
  extended byorg.openrdf.sesame.query.rql.model.Union
All Implemented Interfaces:
Query, ResourceQuery, SetQuery

public class Union
extends Object
implements SetQuery

Union represents a set query where the result is the union of the result sets of the two arguments. The arguments must be select-from-where queries which have the same number of items in their select clause. Query syntax: ( select .... from .... [where ....]? ) union ( select .... from .... [where ....]? )

Version:
$Revision: 1.7.2.2 $
Author:
Jeen Broekstra

Constructor Summary
Union(SfwQuery query1, SfwQuery query2)
           
 
Method Summary
 void evaluate(RdfSchemaSource rss, TableQueryResultListener listener)
           
 SfwQuery getArg1()
           
 SfwQuery getArg2()
           
 String getQuery()
           
 ValueIterator getResources(RdfSchemaSource rss)
           
 boolean returnsSet()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Union

public Union(SfwQuery query1,
             SfwQuery query2)
Method Detail

evaluate

public void evaluate(RdfSchemaSource rss,
                     TableQueryResultListener listener)
              throws QueryEvaluationException
Specified by:
evaluate in interface ResourceQuery
Throws:
QueryEvaluationException

getResources

public ValueIterator getResources(RdfSchemaSource rss)
Specified by:
getResources in interface ResourceQuery

returnsSet

public boolean returnsSet()
Specified by:
returnsSet in interface ResourceQuery

getArg1

public SfwQuery getArg1()
Specified by:
getArg1 in interface SetQuery

getArg2

public SfwQuery getArg2()
Specified by:
getArg2 in interface SetQuery

getQuery

public String getQuery()
Specified by:
getQuery in interface Query

toString

public String toString()


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.