use of org.apache.asterix.lang.sqlpp.visitor.FreeVariableVisitor in project asterixdb by apache.
the class SqlppRewriteUtil method getFreeVariable.
public static Set<VariableExpr> getFreeVariable(Expression expr) throws CompilationException {
Set<VariableExpr> vars = new HashSet<>();
FreeVariableVisitor visitor = new FreeVariableVisitor();
expr.accept(visitor, vars);
return vars;
}
use of org.apache.asterix.lang.sqlpp.visitor.FreeVariableVisitor in project asterixdb by apache.
the class SqlppVariableUtil method getFreeVariables.
public static Collection<VariableExpr> getFreeVariables(ILangExpression langExpr) throws CompilationException {
Collection<VariableExpr> freeVars = new HashSet<>();
FreeVariableVisitor visitor = new FreeVariableVisitor();
langExpr.accept(visitor, freeVars);
return freeVars;
}
Aggregations