Class QueryEvaluationStep.DelayedEvaluationIteration
java.lang.Object
org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration<BindingSet>
org.eclipse.rdf4j.common.iteration.DelayedIteration<BindingSet>
org.eclipse.rdf4j.query.algebra.evaluation.QueryEvaluationStep.DelayedEvaluationIteration
- All Implemented Interfaces:
AutoCloseable, Iterator<BindingSet>, CloseableIteration<BindingSet>
- Enclosing interface:
QueryEvaluationStep
public static class QueryEvaluationStep.DelayedEvaluationIteration
extends DelayedIteration<BindingSet>
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 inherited from interface CloseableIteration
EMPTY_STATEMENT_ITERATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CloseableIteration<? extends BindingSet> Creates the iteration that should be iterated over.Methods inherited from class DelayedIteration
handleClose, hasNext, next, removeModifier and TypeMethodDescriptionprotected 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.next()Calls the next method of the underlying iteration.voidremove()Calls the remove method of the underlying iteration.Methods inherited from class AbstractCloseableIteration
close, isClosedModifier and TypeMethodDescriptionfinal voidclose()CallsAbstractCloseableIteration.handleClose()upon first call and makes sure the resource closures are only executed once.final booleanisClosed()Checks whether this CloseableIteration has been closed.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CloseableIteration
streamModifier and TypeMethodDescriptiondefault Stream<BindingSet> stream()Convert the results to a Java 8 Stream.Methods inherited from interface Iterator
forEachRemaining
-
Constructor Details
-
DelayedEvaluationIteration
-
-
Method Details
-
createIteration
protected CloseableIteration<? extends BindingSet> createIteration() throws QueryEvaluationExceptionDescription copied from class:DelayedIterationCreates the iteration that should be iterated over. This method is called only once, when the iteration is first needed.- Specified by:
createIterationin classDelayedIteration<BindingSet>- Throws:
QueryEvaluationException
-