org.openrdf.sesame.sail.query
Class SetOperator

java.lang.Object
  extended byorg.openrdf.sesame.sail.query.SetOperator
All Implemented Interfaces:
Query
Direct Known Subclasses:
Intersect, Minus, Union

public abstract class SetOperator
extends Object
implements Query

Generic set operator. Concrete set operations are union, intersection, and minus.

Author:
Jeen Broekstra

Constructor Summary
SetOperator(Query leftArg, Query rightArg, boolean all)
           
 
Method Summary
 String[] getColumnHeaders()
          Gets the headers for the results table that is produced by this query.
 Query getLeftArg()
           
 Query getRightArg()
           
 void getVariables(Collection variables)
          Gets all variables that are used in this query.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openrdf.sesame.sail.query.Query
evaluate
 

Constructor Detail

SetOperator

public SetOperator(Query leftArg,
                   Query rightArg,
                   boolean all)
Method Detail

getLeftArg

public Query getLeftArg()

getRightArg

public Query getRightArg()

getVariables

public void getVariables(Collection variables)
Description copied from interface: Query
Gets all variables that are used in this query.

Specified by:
getVariables in interface Query
Parameters:
variables - A Collection to add the Var objects to.

getColumnHeaders

public String[] getColumnHeaders()
Description copied from interface: Query
Gets the headers for the results table that is produced by this query.

Specified by:
getColumnHeaders in interface Query
Returns:
An array containing as much strings as there are values in each query result.


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