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

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.ExpToPhyTranslationVisitor

public class ExpToPhyTranslationVisitor
extends LogicalExpressionVisitor


Field Summary
protected  LogicalRelationalOperator currentOp
           
protected  PhysicalPlan currentPlan
           
protected  Stack<PhysicalPlan> currentPlans
           
protected  Map<Operator,PhysicalOperator> logToPhyMap
           
protected  NodeIdGenerator nodeGen
           
protected  PigContext pc
           
 
Fields inherited from class org.apache.pig.newplan.PlanVisitor
currentWalker, DEFAULT_SCOPE, plan
 
Constructor Summary
ExpToPhyTranslationVisitor(OperatorPlan plan, LogicalRelationalOperator op, PhysicalPlan phyPlan, Map<Operator,PhysicalOperator> map)
           
ExpToPhyTranslationVisitor(OperatorPlan plan, PlanWalker walker, LogicalRelationalOperator op, PhysicalPlan phyPlan, Map<Operator,PhysicalOperator> map)
           
 
Method Summary
 PhysicalPlan getPhysicalPlan()
           
 void setPigContext(PigContext pc)
           
 void visit(AddExpression op)
           
 void visit(AndExpression op)
           
 void visit(BinCondExpression op)
           
 void visit(CastExpression op)
           
 void visit(ConstantExpression op)
           
 void visit(DereferenceExpression op)
           
 void visit(DivideExpression op)
           
 void visit(EqualExpression op)
           
 void visit(GreaterThanEqualExpression op)
           
 void visit(GreaterThanExpression op)
           
 void visit(IsNullExpression op)
           
 void visit(LessThanEqualExpression op)
           
 void visit(LessThanExpression op)
           
 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 op)
           
 void visit(ProjectExpression op)
           
 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
 

Field Detail

currentOp

protected LogicalRelationalOperator currentOp

logToPhyMap

protected Map<Operator,PhysicalOperator> logToPhyMap

currentPlans

protected Stack<PhysicalPlan> currentPlans

currentPlan

protected PhysicalPlan currentPlan

nodeGen

protected NodeIdGenerator nodeGen

pc

protected PigContext pc
Constructor Detail

ExpToPhyTranslationVisitor

public ExpToPhyTranslationVisitor(OperatorPlan plan,
                                  LogicalRelationalOperator op,
                                  PhysicalPlan phyPlan,
                                  Map<Operator,PhysicalOperator> map)
                           throws FrontendException
Throws:
FrontendException

ExpToPhyTranslationVisitor

public ExpToPhyTranslationVisitor(OperatorPlan plan,
                                  PlanWalker walker,
                                  LogicalRelationalOperator op,
                                  PhysicalPlan phyPlan,
                                  Map<Operator,PhysicalOperator> map)
                           throws FrontendException
Throws:
FrontendException
Method Detail

setPigContext

public void setPigContext(PigContext pc)

getPhysicalPlan

public PhysicalPlan getPhysicalPlan()

visit

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

visit

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

visit

public void visit(EqualExpression 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(GreaterThanExpression op)
           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 op)
           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(ProjectExpression 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(ConstantExpression op)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException

visit

public void visit(CastExpression 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(RegexExpression 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(DivideExpression 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(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 op)
           throws FrontendException
Overrides:
visit in class LogicalExpressionVisitor
Throws:
FrontendException


Copyright © ${year} The Apache Software Foundation