Search in sources :

Example 16 with QueryIterator

use of org.apache.jena.sparql.engine.QueryIterator in project jena by apache.

the class OpExecutor method execute.

// ---- All the cases
protected QueryIterator execute(OpBGP opBGP, QueryIterator input) {
    BasicPattern pattern = opBGP.getPattern();
    QueryIterator qIter = stageGenerator.execute(pattern, input, execCxt);
    if (hideBNodeVars)
        qIter = new QueryIterDistinguishedVars(qIter, execCxt);
    return qIter;
}
Also used : QueryIterator(org.apache.jena.sparql.engine.QueryIterator) BasicPattern(org.apache.jena.sparql.core.BasicPattern)

Example 17 with QueryIterator

use of org.apache.jena.sparql.engine.QueryIterator in project jena by apache.

the class QueryIterRepeatApply method makeNextStage.

private QueryIterator makeNextStage() {
    count++;
    if (getInput() == null)
        return null;
    if (!getInput().hasNext()) {
        getInput().close();
        return null;
    }
    Binding binding = getInput().next();
    QueryIterator iter = nextStage(binding);
    return iter;
}
Also used : Binding(org.apache.jena.sparql.engine.binding.Binding) QueryIterator(org.apache.jena.sparql.engine.QueryIterator)

Example 18 with QueryIterator

use of org.apache.jena.sparql.engine.QueryIterator in project jena by apache.

the class ExecutionDispatch method visit.

@Override
public void visit(OpBGP opBGP) {
    QueryIterator input = pop();
    QueryIterator qIter = opExecutor.execute(opBGP, input);
    push(qIter);
}
Also used : QueryIterator(org.apache.jena.sparql.engine.QueryIterator)

Example 19 with QueryIterator

use of org.apache.jena.sparql.engine.QueryIterator in project jena by apache.

the class ExecutionDispatch method visit.

@Override
public void visit(OpTriple opTriple) {
    QueryIterator input = pop();
    QueryIterator qIter = opExecutor.execute(opTriple, input);
    push(qIter);
}
Also used : QueryIterator(org.apache.jena.sparql.engine.QueryIterator)

Example 20 with QueryIterator

use of org.apache.jena.sparql.engine.QueryIterator in project jena by apache.

the class ExecutionDispatch method visit.

@Override
public void visit(OpDistinct opDistinct) {
    QueryIterator input = pop();
    QueryIterator qIter = opExecutor.execute(opDistinct, input);
    push(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