org.openrdf.sesame.sail.query
Class DuplicatesFilter

java.lang.Object
  extended byorg.openrdf.sesame.sail.query.DuplicatesFilter
All Implemented Interfaces:
QueryAnswerListener

public class DuplicatesFilter
extends Object
implements QueryAnswerListener

A QueryAnswerListener that filters any duplicates from the query results and forwards these filtered results to another QueryAnswerListener.


Constructor Summary
DuplicatesFilter(QueryAnswerListener l)
          Creates a new DuplicatesFilter.
 
Method Summary
 void clear()
          Method called when the query engine has finished or aborted the query evaluation, signaling that the listener can/should clear any recorded and query-specific information.
 boolean queryAnswer(QueryAnswer qa)
          Reports a query answer to the listener.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DuplicatesFilter

public DuplicatesFilter(QueryAnswerListener l)
Creates a new DuplicatesFilter.

Parameters:
l - The QueryAnswerListener that will receive the filtered query results.
Method Detail

queryAnswer

public boolean queryAnswer(QueryAnswer qa)
                    throws IOException
Description copied from interface: QueryAnswerListener
Reports a query answer to the listener.

Specified by:
queryAnswer in interface QueryAnswerListener
Parameters:
qa - The query answer.
Returns:
A flag indicating whether the query engine should continue evaluating the (sub-)query.
Throws:
IOException

clear

public void clear()
Description copied from interface: QueryAnswerListener
Method called when the query engine has finished or aborted the query evaluation, signaling that the listener can/should clear any recorded and query-specific information.

Specified by:
clear in interface QueryAnswerListener


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