Class ExtensionIterator
java.lang.Object
org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration<BindingSet>
org.eclipse.rdf4j.common.iteration.ConvertingIteration<BindingSet, BindingSet>
org.eclipse.rdf4j.query.algebra.evaluation.iterator.ExtensionIterator
- All Implemented Interfaces:
AutoCloseable, Iterator<BindingSet>, CloseableIteration<BindingSet>
-
Field Summary
Fields inherited from interface CloseableIteration
EMPTY_STATEMENT_ITERATION -
Constructor Summary
ConstructorsConstructorDescriptionExtensionIterator(CloseableIteration<BindingSet> iter, Consumer<MutableBindingSet> setter, QueryEvaluationContext context) ExtensionIterator(Extension extension, CloseableIteration<BindingSet> iter, EvaluationStrategy strategy, QueryEvaluationContext context) -
Method Summary
Modifier and TypeMethodDescriptionstatic Consumer<MutableBindingSet> buildLambdaToEvaluateTheExpressions(Extension extension, EvaluationStrategy strategy, QueryEvaluationContext context, boolean setNullOnError) convert(BindingSet sourceBindings) Converts a source type object to a target type object.Methods inherited from class ConvertingIteration
handleClose, hasNext, next, removeModifier and TypeMethodDescriptionprotected voidCloses this iteration as well as the wrapped iteration if it is aCloseableIteration.final booleanhasNext()Checks whether the source type iteration contains more elements.final BindingSetnext()Returns the next element from the source type iteration.final voidremove()Calls remove() on 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
-
ExtensionIterator
public ExtensionIterator(Extension extension, CloseableIteration<BindingSet> iter, EvaluationStrategy strategy, QueryEvaluationContext context) throws QueryEvaluationException - Throws:
QueryEvaluationException
-
ExtensionIterator
public ExtensionIterator(CloseableIteration<BindingSet> iter, Consumer<MutableBindingSet> setter, QueryEvaluationContext context) throws QueryEvaluationException - Throws:
QueryEvaluationException
-
-
Method Details
-
buildLambdaToEvaluateTheExpressions
public static Consumer<MutableBindingSet> buildLambdaToEvaluateTheExpressions(Extension extension, EvaluationStrategy strategy, QueryEvaluationContext context, boolean setNullOnError) -
convert
Description copied from class:ConvertingIterationConverts a source type object to a target type object.- Specified by:
convertin classConvertingIteration<BindingSet, BindingSet>- Throws:
QueryEvaluationException
-