org.openrdf.sesame.sail.query
Class Minus

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

public class Minus
extends SetOperator

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

Author:
Jeen Broekstra

Constructor Summary
Minus(Query leftArg, Query rightArg, boolean all)
          Creates a new Minus object that filters the query answers from the left argument if they are not in the query answer set from the 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

Minus

public Minus(Query leftArg,
             Query rightArg,
             boolean all)
Creates a new Minus object that filters the query answers from the left argument if they are not in the query answer set from the 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.