Search in sources :

Example 1 with GroupConcat

use of org.eclipse.rdf4j.query.algebra.GroupConcat in project rdf4j by eclipse.

the class TupleExprBuilder method visit.

@Override
public Object visit(ASTGroupConcat node, Object data) throws VisitorException {
    ValueExpr ve = (ValueExpr) node.jjtGetChild(0).jjtAccept(this, data);
    GroupConcat gc = new GroupConcat(ve, node.isDistinct());
    if (node.jjtGetNumChildren() > 1) {
        ValueExpr separator = (ValueExpr) node.jjtGetChild(1).jjtAccept(this, data);
        gc.setSeparator(separator);
    }
    return gc;
}
Also used : ValueExpr(org.eclipse.rdf4j.query.algebra.ValueExpr) GroupConcat(org.eclipse.rdf4j.query.algebra.GroupConcat)

Aggregations

GroupConcat (org.eclipse.rdf4j.query.algebra.GroupConcat)1 ValueExpr (org.eclipse.rdf4j.query.algebra.ValueExpr)1