Search in sources :

Example 1 with UnionExpr

use of org.apache.asterix.lang.aql.expression.UnionExpr in project asterixdb by apache.

the class AQLCloneAndSubstituteVariablesVisitor method visit.

@Override
public Pair<ILangExpression, VariableSubstitutionEnvironment> visit(UnionExpr u, VariableSubstitutionEnvironment env) throws CompilationException {
    List<Expression> exprList = VariableCloneAndSubstitutionUtil.visitAndCloneExprList(u.getExprs(), env, this);
    UnionExpr newU = new UnionExpr(exprList);
    return new Pair<ILangExpression, VariableSubstitutionEnvironment>(newU, env);
}
Also used : Expression(org.apache.asterix.lang.common.base.Expression) ILangExpression(org.apache.asterix.lang.common.base.ILangExpression) FLWOGRExpression(org.apache.asterix.lang.aql.expression.FLWOGRExpression) UnionExpr(org.apache.asterix.lang.aql.expression.UnionExpr) Pair(org.apache.hyracks.algebricks.common.utils.Pair)

Aggregations

FLWOGRExpression (org.apache.asterix.lang.aql.expression.FLWOGRExpression)1 UnionExpr (org.apache.asterix.lang.aql.expression.UnionExpr)1 Expression (org.apache.asterix.lang.common.base.Expression)1 ILangExpression (org.apache.asterix.lang.common.base.ILangExpression)1 Pair (org.apache.hyracks.algebricks.common.utils.Pair)1