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) ; }
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) ; }