Search in sources :

Example 26 with Table

use of org.apache.jena.sparql.algebra.Table in project jena by apache.

the class EvaluatorDispatch method visit.

@Override
public void visit(OpProcedure opProc) {
    Table table = eval(opProc.getSubOp());
    table = evaluator.procedure(table, opProc.getProcId(), opProc.getArgs());
    push(table);
}
Also used : Table(org.apache.jena.sparql.algebra.Table)

Example 27 with Table

use of org.apache.jena.sparql.algebra.Table in project jena by apache.

the class EvaluatorDispatch method visit.

@Override
public void visit(OpGroup opGroup) {
    Table table = eval(opGroup.getSubOp());
    table = evaluator.groupBy(table, opGroup.getGroupVars(), opGroup.getAggregators());
    push(table);
}
Also used : Table(org.apache.jena.sparql.algebra.Table)

Example 28 with Table

use of org.apache.jena.sparql.algebra.Table in project jena by apache.

the class EvaluatorDispatch method visit.

@Override
public void visit(OpBGP opBGP) {
    Table table = evaluator.basicPattern(opBGP.getPattern());
    push(table);
}
Also used : Table(org.apache.jena.sparql.algebra.Table)

Example 29 with Table

use of org.apache.jena.sparql.algebra.Table in project jena by apache.

the class EvaluatorDispatch method visit.

@Override
public void visit(OpJoin opJoin) {
    Table left = eval(opJoin.getLeft());
    Table right = eval(opJoin.getRight());
    Table table = evaluator.join(left, right);
    push(table);
}
Also used : Table(org.apache.jena.sparql.algebra.Table)

Example 30 with Table

use of org.apache.jena.sparql.algebra.Table in project jena by apache.

the class EvaluatorDispatch method visit.

@Override
public void visit(OpProject opProject) {
    Table table = eval(opProject.getSubOp());
    table = evaluator.project(table, opProject.getVars());
    push(table);
}
Also used : Table(org.apache.jena.sparql.algebra.Table)

Aggregations

Table (org.apache.jena.sparql.algebra.Table)37 Var (org.apache.jena.sparql.core.Var)4 QueryIterator (org.apache.jena.sparql.engine.QueryIterator)4 Binding (org.apache.jena.sparql.engine.binding.Binding)4 Node (org.apache.jena.graph.Node)3 Op (org.apache.jena.sparql.algebra.Op)3 Graph (org.apache.jena.graph.Graph)2 ARQInternalErrorException (org.apache.jena.sparql.ARQInternalErrorException)2 OpGraph (org.apache.jena.sparql.algebra.op.OpGraph)2 TableEmpty (org.apache.jena.sparql.algebra.table.TableEmpty)2 BasicPattern (org.apache.jena.sparql.core.BasicPattern)2 DatasetGraph (org.apache.jena.sparql.core.DatasetGraph)2 ExecutionContext (org.apache.jena.sparql.engine.ExecutionContext)2 Test (org.junit.Test)2 InternalErrorException (org.apache.jena.atlas.lib.InternalErrorException)1 Triple (org.apache.jena.graph.Triple)1 OpBGP (org.apache.jena.sparql.algebra.op.OpBGP)1 OpTable (org.apache.jena.sparql.algebra.op.OpTable)1 TableN (org.apache.jena.sparql.algebra.table.TableN)1 QueryIterConcat (org.apache.jena.sparql.engine.iterator.QueryIterConcat)1