Search in sources :

Example 11 with QueryIterator

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;
}
Also used : QueryIterator(org.apache.jena.sparql.engine.QueryIterator)

Example 12 with QueryIterator

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;
}
Also used : QueryIterator(org.apache.jena.sparql.engine.QueryIterator)

Example 13 with QueryIterator

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;
}
Also used : QueryIterator(org.apache.jena.sparql.engine.QueryIterator)

Example 14 with QueryIterator

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;
}
Also used : QueryIterator(org.apache.jena.sparql.engine.QueryIterator)

Example 15 with QueryIterator

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;
}
Also used : QueryIterator(org.apache.jena.sparql.engine.QueryIterator)

Aggregations

QueryIterator (org.apache.jena.sparql.engine.QueryIterator)126 Binding (org.apache.jena.sparql.engine.binding.Binding)27 Op (org.apache.jena.sparql.algebra.Op)15 Node (org.apache.jena.graph.Node)13 TableN (org.apache.jena.sparql.algebra.table.TableN)13 ArrayList (java.util.ArrayList)12 ResultSetStream (org.apache.jena.sparql.engine.ResultSetStream)10 Var (org.apache.jena.sparql.core.Var)9 ResultSet (org.apache.jena.query.ResultSet)8 QueryIterPlainWrapper (org.apache.jena.sparql.engine.iterator.QueryIterPlainWrapper)8 Triple (org.apache.jena.graph.Triple)6 ExecutionContext (org.apache.jena.sparql.engine.ExecutionContext)6 BasicPattern (org.apache.jena.sparql.core.BasicPattern)5 QueryIterConcat (org.apache.jena.sparql.engine.iterator.QueryIterConcat)5 Table (org.apache.jena.sparql.algebra.Table)4 DatasetGraph (org.apache.jena.sparql.core.DatasetGraph)4 HashSet (java.util.HashSet)3 Plan (org.apache.jena.sparql.engine.Plan)3 BindingMap (org.apache.jena.sparql.engine.binding.BindingMap)3 Procedure (org.apache.jena.sparql.procedure.Procedure)3