org.apache.pig.newplan.logical.expression
Class AllSameExpressionVisitor

java.lang.Object
  extended by org.apache.pig.newplan.PlanVisitor
      extended by org.apache.pig.newplan.logical.expression.LogicalExpressionVisitor
          extended by org.apache.pig.newplan.logical.expression.AllSameExpressionVisitor

public abstract class AllSameExpressionVisitor
extends LogicalExpressionVisitor


Field Summary
 
Fields inherited from class org.apache.pig.newplan.PlanVisitor
currentWalker, DEFAULT_SCOPE, plan
 
Constructor Summary
AllSameExpressionVisitor(OperatorPlan plan, PlanWalker walker)
           
 
Method Summary
protected abstract  void execute(LogicalExpression op)
          Method to call on every node in the logical expression plan.
 void visit(AddExpression op)
           
 void visit(AndExpression andExpr)
           
 void visit(BinCondExpression op)
           
 void visit(CastExpression cast)
           
 void visit(ConstantExpression constant)
           
 void visit(DereferenceExpression derefenceExpression)
           
 void visit(DivideExpression op)
           
 void visit(EqualExpression equal)
           
 void visit(GreaterThanEqualExpression op)
           
 void visit(GreaterThanExpression greaterThanExpression)
           
 void visit(IsNullExpression op)
           
 void visit(LessThanEqualExpression op)
           
 void visit(LessThanExpression lessThanExpression)
           
 void visit(MapLookupExpression op)
           
 void visit(ModExpression op)
           
 void visit(MultiplyExpression op)
           
 void visit(NegativeExpression op)
           
 void visit(NotEqualExpression op)
           
 void visit(NotExpression op)
           
 void visit(OrExpression exp)
           
 void visit(ProjectExpression project)
           
 void visit(RegexExpression op)
           
 void visit(SubtractExpression op)
           
 void visit(UserFuncExpression op)
           
 
Methods inherited from class org.apache.pig.newplan.logical.expression.LogicalExpressionVisitor
visit
 
Methods inherited from class org.apache.pig.newplan.PlanVisitor
getPlan, popWalker, pushWalker, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllSameExpressionVisitor

public AllSameExpressionVisitor(OperatorPlan plan,
                                PlanWalker walker)
                         throws FrontendException
Throws:
FrontendException
Method Detail

execute

protected abstract void execute(LogicalExpression op)
                         throws FrontendException
Method to call on every node in the logical expression plan.

Parameters:
op - Node that is currently being visited.
Throws:
FrontendException

visit

public void visit(AndExpression andExpr)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(OrExpression exp)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(EqualExpression equal)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(ProjectExpression project)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(ConstantExpression constant)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(CastExpression cast)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(GreaterThanExpression greaterThanExpression)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(GreaterThanEqualExpression op)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(LessThanExpression lessThanExpression)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(LessThanEqualExpression op)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(NotEqualExpression op)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(NotExpression op)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(IsNullExpression op)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(NegativeExpression op)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(AddExpression op)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(SubtractExpression op)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(MultiplyExpression op)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(ModExpression op)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(DivideExpression op)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(MapLookupExpression op)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(BinCondExpression op)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(UserFuncExpression op)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(DereferenceExpression derefenceExpression)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(RegexExpression op)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException


Copyright © 2007-2012 The Apache Software Foundation