use of org.apache.jena.sparql.engine.QueryIterator in project jena by apache.
the class OpExecutor method execute.
// ---- All the cases
protected QueryIterator execute(OpBGP opBGP, QueryIterator input) {
BasicPattern pattern = opBGP.getPattern();
QueryIterator qIter = stageGenerator.execute(pattern, input, execCxt);
if (hideBNodeVars)
qIter = new QueryIterDistinguishedVars(qIter, execCxt);
return qIter;
}
use of org.apache.jena.sparql.engine.QueryIterator in project jena by apache.
the class QueryIterRepeatApply method makeNextStage.
private QueryIterator makeNextStage() {
count++;
if (getInput() == null)
return null;
if (!getInput().hasNext()) {
getInput().close();
return null;
}
Binding binding = getInput().next();
QueryIterator iter = nextStage(binding);
return iter;
}
use of org.apache.jena.sparql.engine.QueryIterator in project jena by apache.
the class ExecutionDispatch method visit.
@Override
public void visit(OpBGP opBGP) {
QueryIterator input = pop();
QueryIterator qIter = opExecutor.execute(opBGP, input);
push(qIter);
}
use of org.apache.jena.sparql.engine.QueryIterator in project jena by apache.
the class ExecutionDispatch method visit.
@Override
public void visit(OpTriple opTriple) {
QueryIterator input = pop();
QueryIterator qIter = opExecutor.execute(opTriple, input);
push(qIter);
}
use of org.apache.jena.sparql.engine.QueryIterator in project jena by apache.
the class ExecutionDispatch method visit.
@Override
public void visit(OpDistinct opDistinct) {
QueryIterator input = pop();
QueryIterator qIter = opExecutor.execute(opDistinct, input);
push(qIter);
}
Aggregations