org.openrdf.query.algebra.evaluation.iterator
Class FilterIterator

java.lang.Object
  extended by info.aduna.iteration.CloseableIterationBase<E,X>
      extended by info.aduna.iteration.IterationWrapper<E,X>
          extended by info.aduna.iteration.FilterIteration<BindingSet,QueryEvaluationException>
              extended by org.openrdf.query.algebra.evaluation.iterator.FilterIterator
All Implemented Interfaces:
CloseableIteration<BindingSet,QueryEvaluationException>, Iteration<BindingSet,QueryEvaluationException>

public class FilterIterator
extends FilterIteration<BindingSet,QueryEvaluationException>


Field Summary
 
Fields inherited from class info.aduna.iteration.IterationWrapper
wrappedIter
 
Constructor Summary
FilterIterator(Filter filter, CloseableIteration<BindingSet,QueryEvaluationException> iter, EvaluationStrategy strategy)
           
 
Method Summary
protected  boolean accept(BindingSet bindings)
          Tests whether or not the specified object should be returned by this Iteration.
 
Methods inherited from class info.aduna.iteration.FilterIteration
handleClose, hasNext, next
 
Methods inherited from class info.aduna.iteration.IterationWrapper
remove
 
Methods inherited from class info.aduna.iteration.CloseableIterationBase
close, isClosed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterIterator

public FilterIterator(Filter filter,
                      CloseableIteration<BindingSet,QueryEvaluationException> iter,
                      EvaluationStrategy strategy)
               throws QueryEvaluationException
Throws:
QueryEvaluationException
Method Detail

accept

protected boolean accept(BindingSet bindings)
                  throws QueryEvaluationException
Description copied from class: FilterIteration
Tests whether or not the specified object should be returned by this Iteration. All objects from the wrapped Iteration pass through this method in the same order as they are coming from the wrapped Iteration.

Specified by:
accept in class FilterIteration<BindingSet,QueryEvaluationException>
Parameters:
bindings - The object to be tested.
Returns:
true if the object should be returned, false otherwise.
Throws:
QueryEvaluationException


Copyright © 2001-2012 Aduna. All Rights Reserved.