use of org.apache.jena.sparql.algebra.Table in project jena by apache.
the class EvaluatorDispatch method visit.
@Override
public void visit(OpUnion opUnion) {
Table left = eval(opUnion.getLeft());
Table right = eval(opUnion.getRight());
Table table = evaluator.union(left, right);
push(table);
}
use of org.apache.jena.sparql.algebra.Table in project jena by apache.
the class EvaluatorDispatch method visit.
@Override
public void visit(OpService opService) {
QueryIterator qIter = Service.exec(opService, ARQ.getContext());
Table table = TableFactory.create(qIter);
push(table);
}
use of org.apache.jena.sparql.algebra.Table in project jena by apache.
the class EvaluatorDispatch method visit.
@Override
public void visit(OpSequence opSequence) {
// Evaluation is as a sequence of joins.
Table table = TableFactory.createUnit();
for (Iterator<Op> iter = opSequence.iterator(); iter.hasNext(); ) {
Op op = iter.next();
Table eltTable = eval(op);
table = evaluator.join(table, eltTable);
}
push(table);
}
use of org.apache.jena.sparql.algebra.Table in project jena by apache.
the class EvaluatorDispatch method visit.
@Override
public void visit(OpSlice opSlice) {
Table table = eval(opSlice.getSubOp());
table = evaluator.slice(table, opSlice.getStart(), opSlice.getLength());
push(table);
}
use of org.apache.jena.sparql.algebra.Table in project jena by apache.
the class EvaluatorDispatch method visit.
@Override
public void visit(OpPropFunc opPropFunc) {
Table table = eval(opPropFunc.getSubOp());
table = evaluator.propertyFunction(table, opPropFunc.getProperty(), opPropFunc.getSubjectArgs(), opPropFunc.getObjectArgs());
push(table);
}
Aggregations