Class DelayedEvaluationIteration
java.lang.Object
org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration<BindingSet, QueryEvaluationException>
org.eclipse.rdf4j.query.algebra.evaluation.iterator.DelayedEvaluationIteration
- All Implemented Interfaces:
AutoCloseable, CloseableIteration<BindingSet, QueryEvaluationException>, Iteration<BindingSet, QueryEvaluationException>
public class DelayedEvaluationIteration
extends AbstractCloseableIteration<BindingSet, QueryEvaluationException>
Utility class that removes code duplication and makes a precompiled QueryEvaluationStep available as an iteration
that may be created and used later.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CloseableIteration<BindingSet, QueryEvaluationException> protected final voidCloses this iteration as well as the underlying iteration if it has already been created and happens to be aCloseableIteration.booleanhasNext()Calls the hasNext method of the underlying iteration.private voidnext()Calls the next method of the underlying iteration.voidremove()Calls the remove method of the underlying iteration.Methods inherited from class AbstractCloseableIteration
close, isClosedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CloseableIteration
stream
-
Field Details
-
arg
-
bs
-
iter
-
-
Constructor Details
-
DelayedEvaluationIteration
-
-
Method Details
-
createIteration
protected CloseableIteration<BindingSet, QueryEvaluationException> createIteration() throws QueryEvaluationException- Throws:
QueryEvaluationException
-
hasNext
Calls the hasNext method of the underlying iteration.- Returns:
- true if the iteration has more elements.
- Throws:
QueryEvaluationException
-
next
Calls the next method of the underlying iteration.- Returns:
- the next element in the iteration.
- Throws:
QueryEvaluationException
-
initialise
- Throws:
QueryEvaluationException
-
remove
Calls the remove method of the underlying iteration.- Throws:
QueryEvaluationException
-
handleClose
Closes this iteration as well as the underlying iteration if it has already been created and happens to be aCloseableIteration.- Overrides:
handleClosein classAbstractCloseableIteration<BindingSet, QueryEvaluationException>- Throws:
QueryEvaluationException
-