Search in sources :

Example 11 with TableN

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

Example 12 with TableN

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

Example 13 with TableN

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

Example 14 with TableN

use of org.apache.jena.sparql.algebra.table.TableN in project jena by apache.

the class EvaluatorSimple method extend.

@Override
public Table extend(Table table, VarExprList exprs) {
    QueryIterator qIter = table.iterator(getExecContext());
    qIter = new QueryIterAssign(qIter, exprs, getExecContext(), true);
    return new TableN(qIter);
}
Also used : QueryIterator(org.apache.jena.sparql.engine.QueryIterator) TableN(org.apache.jena.sparql.algebra.table.TableN)

Aggregations

TableN (org.apache.jena.sparql.algebra.table.TableN)14 QueryIterator (org.apache.jena.sparql.engine.QueryIterator)13 Binding (org.apache.jena.sparql.engine.binding.Binding)4 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1 Table (org.apache.jena.sparql.algebra.Table)1 ExecutionContext (org.apache.jena.sparql.engine.ExecutionContext)1