org.apache.pig.newplan.logical.visitor
Class CastLineageSetter

java.lang.Object
  extended by org.apache.pig.newplan.PlanVisitor
      extended by org.apache.pig.newplan.logical.relational.LogicalRelationalNodesVisitor
          extended by org.apache.pig.newplan.logical.optimizer.AllExpressionVisitor
              extended by org.apache.pig.newplan.logical.visitor.CastLineageSetter

public class CastLineageSetter
extends AllExpressionVisitor

Find uid lineage information. Set the load function in CastExpression if it needs to convert bytearray to another type.


Field Summary
 
Fields inherited from class org.apache.pig.newplan.logical.optimizer.AllExpressionVisitor
currentOp
 
Fields inherited from class org.apache.pig.newplan.PlanVisitor
currentWalker, DEFAULT_SCOPE, plan
 
Constructor Summary
CastLineageSetter(LogicalPlan plan, CompilationMessageCollector msgCollector)
           
 
Method Summary
protected  LogicalExpressionVisitor getVisitor(LogicalExpressionPlan exprPlan)
          Get a new instance of the expression visitor to apply to a given expression.
 
Methods inherited from class org.apache.pig.newplan.logical.optimizer.AllExpressionVisitor
visit, visit, visit, visit, visit, visit, visit, visit
 
Methods inherited from class org.apache.pig.newplan.logical.relational.LogicalRelationalNodesVisitor
visit, visit, visit, visit, visit, visit, visit, visit, 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

CastLineageSetter

public CastLineageSetter(LogicalPlan plan,
                         CompilationMessageCollector msgCollector)
                  throws FrontendException
Throws:
FrontendException
Method Detail

getVisitor

protected LogicalExpressionVisitor getVisitor(LogicalExpressionPlan exprPlan)
                                       throws FrontendException
Description copied from class: AllExpressionVisitor
Get a new instance of the expression visitor to apply to a given expression.

Specified by:
getVisitor in class AllExpressionVisitor
Parameters:
exprPlan - LogicalExpressionPlan that will be visited
Returns:
a new LogicalExpressionVisitor for that expression
Throws:
FrontendException


Copyright © ${year} The Apache Software Foundation