@Override public boolean equals(Object object) { if (this == object) { return true; } if (!(object instanceof WhereClause)) { return false; } WhereClause whereClause = (WhereClause) object; return whereExpr.equals(whereClause.getWhereExpr()); } }
@Override public Void visit(WhereClause whereClause, Collection<VariableExpr> freeVars) throws CompilationException { whereClause.getWhereExpr().accept(this, freeVars); return null; }
@Override public Boolean visit(WhereClause wc, ILangExpression arg) throws CompilationException { return visit(wc.getWhereExpr(), arg); }
@Override public Void visit(WhereClause wc, Void arg) throws CompilationException { wc.getWhereExpr().accept(this, arg); return null; }
@Override public Void visit(WhereClause wc, Integer step) throws CompilationException { out.print(skip(step) + "where "); wc.getWhereExpr().accept(this, step + 1); out.println(); return null; }
@Override public Void visit(WhereClause wc, Integer step) throws CompilationException { out.println(skip(step) + "Where"); wc.getWhereExpr().accept(this, step + 1); return null; }
@Override public Expression visit(WhereClause whereClause, ILangExpression arg) throws CompilationException { whereClause.setWhereExpr(visit(whereClause.getWhereExpr(), whereClause)); return null; }
@Override public Expression visit(WhereClause whereClause, ILangExpression arg) throws CompilationException { whereClause.setWhereExpr(visit(whereClause.getWhereExpr(), whereClause)); return null; }
@Override public Boolean visit(WhereClause wc, List<FunctionDecl> arg) throws CompilationException { Pair<Boolean, Expression> p = inlineUdfsInExpr(wc.getWhereExpr(), arg); wc.setWhereExpr(p.second); return p.first; }
do { WhereClause whereClause = (WhereClause) clause; expressions.add(whereClause.getWhereExpr()); if (++index >= size) { break;
@Override public WhereClause visit(WhereClause whereClause, Void arg) throws CompilationException { WhereClause copy = new WhereClause((Expression) whereClause.getWhereExpr().accept(this, arg)); copy.setSourceLocation(whereClause.getSourceLocation()); return copy; }
@Override public Pair<ILangExpression, VariableSubstitutionEnvironment> visit(WhereClause wc, VariableSubstitutionEnvironment env) throws CompilationException { Pair<ILangExpression, VariableSubstitutionEnvironment> p1 = wc.getWhereExpr().accept(this, env); WhereClause newW = new WhereClause((Expression) p1.first); newW.setSourceLocation(wc.getSourceLocation()); return new Pair<>(newW, p1.second); }
@Override public Pair<ILogicalOperator, LogicalVariable> visit(WhereClause w, Mutable<ILogicalOperator> tupSource) throws CompilationException { Pair<ILogicalExpression, Mutable<ILogicalOperator>> p = langExprToAlgExpression(w.getWhereExpr(), tupSource); SelectOperator s = new SelectOperator(new MutableObject<>(p.first), false, null); s.getInputs().add(p.second); s.setSourceLocation(w.getSourceLocation()); return new Pair<>(s, null); }