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

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.visitor.LineageFindRelVisitor

public class LineageFindRelVisitor
extends LogicalRelationalNodesVisitor

Create mapping between uid and Load FuncSpec when the LogicalExpression associated with it is known to hold an unmodified element of data returned by the load function. This information is used to find the LoadCaster to be used to cast bytearrays into other other types.


Field Summary
 
Fields inherited from class org.apache.pig.newplan.PlanVisitor
currentWalker, DEFAULT_SCOPE, plan
 
Constructor Summary
LineageFindRelVisitor(OperatorPlan plan)
           
 
Method Summary
 Map<Long,FuncSpec> getUid2LoadFuncMap()
           
 void visit(LOCogroup group)
           
 void visit(LOCross relOp)
           
 void visit(LODistinct relOp)
           
 void visit(LOFilter filter)
           
 void visit(LOForEach fe)
           
 void visit(LOGenerate gen)
           
 void visit(LOInnerLoad innerLoad)
           
 void visit(LOJoin join)
           
 void visit(LOLimit loLimit)
           
 void visit(LOLoad load)
           
 void visit(LORank rank)
           
 void visit(LOSort sort)
           
 void visit(LOSplit relOp)
           
 void visit(LOSplitOutput split)
           
 void visit(LOStore relOp)
           
 void visit(LOStream stream)
           
 void visit(LOUnion relOp)
           
 
Methods inherited from class org.apache.pig.newplan.logical.relational.LogicalRelationalNodesVisitor
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

LineageFindRelVisitor

public LineageFindRelVisitor(OperatorPlan plan)
                      throws FrontendException
Throws:
FrontendException
Method Detail

getUid2LoadFuncMap

public Map<Long,FuncSpec> getUid2LoadFuncMap()

visit

public void visit(LOLoad load)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOStream stream)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOInnerLoad innerLoad)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOFilter filter)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOCogroup group)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOJoin join)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOForEach fe)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOGenerate gen)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOSort sort)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LORank rank)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LODistinct relOp)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOLimit loLimit)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOSplit relOp)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOStore relOp)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOCross relOp)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOUnion relOp)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOSplitOutput split)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException


Copyright © 2007-2012 The Apache Software Foundation