use of org.apache.jena.sparql.algebra.Table in project jena by apache.
the class EvaluatorDispatch method visit.
@Override
public void visit(OpLeftJoin opLeftJoin) {
Table left = eval(opLeftJoin.getLeft());
Table right = eval(opLeftJoin.getRight());
Table table = evaluator.leftJoin(left, right, opLeftJoin.getExprs());
push(table);
}
use of org.apache.jena.sparql.algebra.Table in project jena by apache.
the class EvaluatorDispatch method visit.
@Override
public void visit(OpDiff opDiff) {
Table left = eval(opDiff.getLeft());
Table right = eval(opDiff.getRight());
Table table = evaluator.diff(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(OpExtend opExtend) {
Table table = eval(opExtend.getSubOp());
table = evaluator.extend(table, opExtend.getVarExprList());
push(table);
}
use of org.apache.jena.sparql.algebra.Table in project jena by apache.
the class EvaluatorDispatch method visit.
@Override
public void visit(OpAssign opAssign) {
Table table = eval(opAssign.getSubOp());
table = evaluator.assign(table, opAssign.getVarExprList());
push(table);
}
use of org.apache.jena.sparql.algebra.Table in project jena by apache.
the class NodeTransformOp method transform.
@Override
public Op transform(OpTable opTable) {
if (opTable.isJoinIdentity())
return opTable;
Table table = opTable.getTable();
if (table.isEmpty())
return opTable;
if (TableUnit.isTableUnit(table))
return opTable;
if (table.getVars().size() == 0)
return opTable;
Table table2 = NodeTransformLib.transform(table, transform);
return OpTable.create(table2);
}
Aggregations