Class StatementPatternQueryEvaluationStep.ConvertStatementToBindingSetIterator

java.lang.Object
org.eclipse.rdf4j.query.algebra.evaluation.impl.evaluationsteps.StatementPatternQueryEvaluationStep.ConvertStatementToBindingSetIterator
All Implemented Interfaces:
AutoCloseable, CloseableIteration<BindingSet,QueryEvaluationException>, Iteration<BindingSet,QueryEvaluationException>
Enclosing class:
StatementPatternQueryEvaluationStep

private static final class StatementPatternQueryEvaluationStep.ConvertStatementToBindingSetIterator extends Object implements CloseableIteration<BindingSet,QueryEvaluationException>
Converts statements into the required bindingsets. A lot of work is done in the constructor and then uses invokedynamic code with lambdas for the actual conversion.

This allows avoiding of significant work during the iteration. Which pays of if the iteration is long, otherwise it of course is an unneeded expense.