use of org.apache.jena.sparql.engine.QueryIterator 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.engine.QueryIterator in project jena by apache.
the class EvaluatorSimple method distinct.
@Override
public Table distinct(Table table) {
QueryIterator qIter = table.iterator(getExecContext());
qIter = new QueryIterDistinct(qIter, getExecContext());
return new TableN(qIter);
}
use of org.apache.jena.sparql.engine.QueryIterator in project jena by apache.
the class EvaluatorSimple method dump.
private static void dump(Table table) {
System.out.println("Table: " + Lib.className(table));
QueryIterator qIter = table.iterator(null);
ResultSet rs = new ResultSetStream(table.getVarNames(), null, table.iterator(null));
ResultSetFormatter.out(rs);
}
use of org.apache.jena.sparql.engine.QueryIterator in project jena by apache.
the class EvaluatorSimple method order.
@Override
public Table order(Table table, List<SortCondition> conditions) {
QueryIterator qIter = table.iterator(getExecContext());
qIter = new QueryIterSort(qIter, conditions, getExecContext());
return new TableN(qIter);
}
use of org.apache.jena.sparql.engine.QueryIterator in project jena by apache.
the class EvaluatorSimple method reduced.
@Override
public Table reduced(Table table) {
QueryIterator qIter = table.iterator(getExecContext());
qIter = new QueryIterReduced(qIter, getExecContext());
return new TableN(qIter);
}
Aggregations