org.openrdf.sesame.sail.query
Class Union

java.lang.Object
  extended byorg.openrdf.sesame.sail.query.SetOperator
      extended byorg.openrdf.sesame.sail.query.Union
All Implemented Interfaces:
Query

public class Union
extends SetOperator

Determines the union of two sets of values that are produced by queries.

Author:
Jeen Broekstra

Constructor Summary
Union(Query leftArg, Query rightArg, boolean all)
          Creates a new Union object that reports the union of the query answers that are reported by both the left- and right argument.
 
Method Summary
 void evaluate(RdfSource rdfSource, QueryAnswerListener listener)
          Evaluates the query on the data contained in the supplied RdfSource and reports the results to the supplied QueryAnswerListener.
 String toString()
           
 
Methods inherited from class org.openrdf.sesame.sail.query.SetOperator
getColumnHeaders, getLeftArg, getRightArg, getVariables
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Union

public Union(Query leftArg,
             Query rightArg,
             boolean all)
Creates a new Union object that reports the union of the query answers that are reported by both the left- and right argument.

Method Detail

evaluate

public void evaluate(RdfSource rdfSource,
                     QueryAnswerListener listener)
              throws SailQueryException
Description copied from interface: Query
Evaluates the query on the data contained in the supplied RdfSource and reports the results to the supplied QueryAnswerListener.

Parameters:
rdfSource - An RdfSource containing the data to evaluate the query on.
listener - A QueryAnswerListener that will receive any query results.
Throws:
SailQueryException - An exception indicating that the query evaluation was stopped abnormally.

toString

public String toString()


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