Class FilteringInsertBindingsIteration
java.lang.Object
org.eclipse.rdf4j.federated.evaluation.iterator.FilteringInsertBindingsIteration
- All Implemented Interfaces:
AutoCloseable,Iterator<BindingSet>,CloseableIteration<BindingSet>
public class FilteringInsertBindingsIteration
extends Object
implements CloseableIteration<BindingSet>
Filters iteration according to specified filterExpr and inserts original bindings into filtered results.
- Author:
- Andreas Schwarte
-
Constructor Summary
ConstructorsConstructorDescriptionFilteringInsertBindingsIteration(FilterValueExpr filterExpr, BindingSet bindings, CloseableIteration<BindingSet> iter, FederationEvalStrategy strategy) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaccept(BindingSet bindings) final voidclose()Calls#handleClose()upon first call and makes sure the resource closures are only executed once.booleanhasNext()next()voidremove()Removes the last element that has been returned from the wrapped Iteration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.rdf4j.common.iteration.CloseableIteration
streamMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
FilteringInsertBindingsIteration
public FilteringInsertBindingsIteration(FilterValueExpr filterExpr, BindingSet bindings, CloseableIteration<BindingSet> iter, FederationEvalStrategy strategy) throws QueryEvaluationException - Throws:
QueryEvaluationException
-
-
Method Details
-
next
- Specified by:
nextin interfaceIterator<BindingSet>- Throws:
QueryEvaluationException
-
accept
- Throws:
QueryEvaluationException
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<BindingSet>
-
remove
public void remove()Removes the last element that has been returned from the wrapped Iteration.- Specified by:
removein interfaceIterator<BindingSet>- Throws:
UnsupportedOperationException- If the wrapped Iteration does not support the remove operation.IllegalStateException- if the Iteration has been closed, or ifnext()has not yet been called, orremove()has already been called after the last call tonext().
-
close
public final void close()Calls#handleClose()upon first call and makes sure the resource closures are only executed once.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseableIteration<BindingSet>
-