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;
}
use of org.apache.jena.sparql.engine.QueryIterator in project jena by apache.
the class OpExecutor method execute.
protected QueryIterator execute(OpReduced opReduced, QueryIterator input) {
QueryIterator qIter = exec(opReduced.getSubOp(), input);
qIter = new QueryIterReduced(qIter, execCxt);
return qIter;
}
use of org.apache.jena.sparql.engine.QueryIterator in project jena by apache.
the class OpExecutor method execute.
protected QueryIterator execute(OpOrder opOrder, QueryIterator input) {
QueryIterator qIter = exec(opOrder.getSubOp(), input);
qIter = new QueryIterSort(qIter, opOrder.getConditions(), execCxt);
return qIter;
}
Aggregations