use of org.apache.jena.sparql.engine.QueryIterator in project jena by apache.
the class OpExecutor method execute.
protected QueryIterator execute(OpFilter opFilter, QueryIterator input) {
ExprList exprs = opFilter.getExprs();
Op base = opFilter.getSubOp();
QueryIterator qIter = exec(base, input);
for (Expr expr : exprs) qIter = new QueryIterFilterExpr(qIter, expr, execCxt);
return qIter;
}
use of org.apache.jena.sparql.engine.QueryIterator in project jena by apache.
the class OpExecutor method execute.
// Pass iterator from one step directly into the next.
protected QueryIterator execute(OpSequence opSequence, QueryIterator input) {
QueryIterator qIter = input;
for (Iterator<Op> iter = opSequence.iterator(); iter.hasNext(); ) {
Op sub = iter.next();
qIter = exec(sub, qIter);
}
return qIter;
}
use of org.apache.jena.sparql.engine.QueryIterator in project jena by apache.
the class OpExecutor method execute.
protected QueryIterator execute(OpTopN opTop, QueryIterator input) {
QueryIterator qIter = null;
// We leave this to do the strict case of (top (distinct ...))
if (opTop.getSubOp() instanceof OpDistinct) {
OpDistinct opDistinct = (OpDistinct) opTop.getSubOp();
qIter = exec(opDistinct.getSubOp(), input);
qIter = new QueryIterTopN(qIter, opTop.getConditions(), opTop.getLimit(), true, execCxt);
} else {
qIter = exec(opTop.getSubOp(), input);
qIter = new QueryIterTopN(qIter, opTop.getConditions(), opTop.getLimit(), false, execCxt);
}
return qIter;
}
use of org.apache.jena.sparql.engine.QueryIterator in project jena by apache.
the class OpExecutor method execute.
protected QueryIterator execute(OpAssign opAssign, QueryIterator input) {
QueryIterator qIter = exec(opAssign.getSubOp(), input);
qIter = new QueryIterAssign(qIter, opAssign.getVarExprList(), execCxt, false);
return qIter;
}
use of org.apache.jena.sparql.engine.QueryIterator in project jena by apache.
the class OpExecutor method execute.
protected QueryIterator execute(OpConditional opCondition, QueryIterator input) {
QueryIterator left = exec(opCondition.getLeft(), input);
QueryIterator qIter = new QueryIterOptionalIndex(left, opCondition.getRight(), execCxt);
return qIter;
}
Aggregations