org.openrdf.sesame.sail.query
Class Intersect

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

public class Intersect
extends SetOperator

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


Constructor Summary
Intersect(Query leftArg, Query rightArg, boolean all)
          Creates a new Intersect object that only reports query answers that are present in the query answer sets of 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

Intersect

public Intersect(Query leftArg,
                 Query rightArg,
                 boolean all)
Creates a new Intersect object that only reports query answers that are present in the query answer sets of 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.