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

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

public class Intersect
extends Object
implements SetQuery

Intersect represents a set query where the result is the intersection 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 ....]? ) intersect ( select .... from .... [where ....]? )

Version:
$Revision: 1.7.2.2 $
Author:
Jeen Broekstra

Constructor Summary
Intersect(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

Intersect

public Intersect(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.