afs commented on code in PR #2666: URL: https://github.com/apache/jena/pull/2666#discussion_r1735325544
########## jena-arq/src/main/java/org/apache/jena/sparql/engine/iterator/QueryIterProjectMerge.java: ########## @@ -37,68 +37,69 @@ * should not be used. */ public class QueryIterProjectMerge extends QueryIterRepeatApply { - private final OpProject opProject ; - private final OpExecutor engine ; + private final OpProject opProject; + private final OpExecutor engine; public QueryIterProjectMerge(OpProject opProject, QueryIterator input, OpExecutor engine, ExecutionContext execCxt) { - super(input, execCxt) ; - this.opProject = opProject ; - this.engine = engine ; + super(input, execCxt); + this.opProject = opProject; + this.engine = engine; } @Override protected QueryIterator nextStage(Binding binding) { QueryIterator qIter = engine.executeOp(opProject.getSubOp(), - QueryIterSingleton.create(binding, getExecContext())) ; + QueryIterSingleton.create(binding, getExecContext())); qIter = new QueryIterConvert(qIter, new ProjectEnsureBindingConverter(binding, opProject.getVars()), - getExecContext()) ; - return qIter ; + getExecContext()); + return qIter; } /** Ensure binding from outer binding are present when projecting */ static class ProjectEnsureBindingConverter implements QueryIterConvert.Converter { - private final Binding outerBinding ; - private final List<Var> projectionVars ; + private final Binding outerBinding; + private final List<Var> projectionVars; public ProjectEnsureBindingConverter(Binding outerBinding, List<Var> vars) { - this.outerBinding = outerBinding ; - this.projectionVars = vars ; + this.outerBinding = outerBinding; + this.projectionVars = vars; } @Override public Binding convert(Binding bind) { - return ensure(projectionVars, outerBinding, bind) ; + return ensure(projectionVars, outerBinding, bind); // Effectively, this is: - //bind = new BindingProject(projectionVars, bind) ; - // return BindingUtils.merge(outerBinding, bind) ; + //bind = new BindingProject(projectionVars, bind); + // return BindingUtils.merge(outerBinding, bind); } - /** Merge two bindings, the outer and inner, projecting the inner with the give variables. - * This is what happens in substitutIon execution, with a inner select-project. + /** + * Merge two bindings, the outer and inner, projecting the inner with the give variables. Review Comment: Done! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: pr-unsubscr...@jena.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: pr-unsubscr...@jena.apache.org For additional commands, e-mail: pr-h...@jena.apache.org