protected Plan createPlan() { // Decide the algebra to actually execute. Op op = modifyOp(queryOp) ; QueryIterator queryIterator = null ; if ( dataset != null ) // Null means setting up but not executing a query. queryIterator = evaluate(op, dataset, startBinding, context) ; else // Bypass management interface queryIterator = evaluateNoMgt(op, dataset, startBinding, context) ; // This could be an automagic iterator to catch close. return new PlanOp(getOp(), this, queryIterator) ; }
@Override public void output(IndentedWriter out, SerializationContext sCxt) { if ( getOp() == null ) { out.println(Utils.className(this)) ; return ; } String str = label ; if ( label == null ) str = "Plan" ; out.print(Plan.startMarker) ; out.println(str) ; out.incIndent() ; //getOp().output(out, sCxt) ; qIter.output(out, sCxt) ; out.print(Plan.finishMarker) ; out.decIndent() ; out.ensureStartOfLine() ; } }
@Override public void output(IndentedWriter out, SerializationContext sCxt) { if ( getOp() == null ) { out.println(Utils.className(this)) ; return ; } String str = label ; if ( label == null ) str = "Plan" ; out.print(Plan.startMarker) ; out.println(str) ; out.incIndent() ; //getOp().output(out, sCxt) ; qIter.output(out, sCxt) ; out.print(Plan.finishMarker) ; out.decIndent() ; out.ensureStartOfLine() ; } }
protected Plan createPlan() { // Decide the algebra to actually execute. Op op = queryOp ; if ( ! startBinding.isEmpty() ) { op = Substitute.substitute(op, startBinding) ; context.put(ARQConstants.sysCurrentAlgebra, op) ; // Don't reset the startBinding because it also is // needed in the output. } op = modifyOp(op) ; QueryIterator queryIterator = null ; if ( dataset != null ) // Null means setting up but not executing a query. queryIterator = evaluate(op, dataset, startBinding, context) ; else // Bypass management interface queryIterator = evaluateNoMgt(op, dataset, startBinding, context) ; // This could be an automagic iterator to catch close. return new PlanOp(getOp(), this, queryIterator) ; }
Plan plan = new PlanOp(op, null, qIter) ; divider() ; IndentedWriter out = new IndentedWriter(System.out, false) ;
Plan plan = new PlanOp(op, null, qIter) ; divider() ; IndentedWriter out = new IndentedWriter(System.out, false) ;