org.openrdf.query.algebra.evaluation.iterator
Class FilterIterator
java.lang.Object
info.aduna.iteration.CloseableIterationBase<E,X>
info.aduna.iteration.IterationWrapper<E,X>
info.aduna.iteration.FilterIteration<BindingSet,QueryEvaluationException>
org.openrdf.query.algebra.evaluation.iterator.FilterIterator
- All Implemented Interfaces:
- CloseableIteration<BindingSet,QueryEvaluationException>, Iteration<BindingSet,QueryEvaluationException>
public class FilterIterator
- extends FilterIteration<BindingSet,QueryEvaluationException>
|
Method Summary |
protected boolean |
accept(BindingSet bindings)
Tests whether or not the specified object should be returned by this
Iteration. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilterIterator
public FilterIterator(Filter filter,
CloseableIteration<BindingSet,QueryEvaluationException> iter,
EvaluationStrategy strategy)
throws QueryEvaluationException
- Throws:
QueryEvaluationException
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.