use of org.apache.jena.sparql.algebra.op.OpGroup in project jena by apache.
the class OpRewriter method visit.
@Override
public void visit(OpGroup opGroup) {
opGroup.getSubOp().visit(this);
ExprRewriter expRewriter = new ExprRewriter(values);
VarExprList groupVars = rewrite(opGroup.getGroupVars());
List<ExprAggregator> aggregators = new ArrayList<>();
for (ExprAggregator ea : opGroup.getAggregators()) {
ea.visit(expRewriter);
aggregators.add((ExprAggregator) expRewriter.pop());
}
push(new OpGroup(pop(), groupVars, aggregators));
}
Aggregations