Class PigRelOpWalker

  • class PigRelOpWalker
    extends org.apache.pig.newplan.PlanWalker
    Post-order walker for Pig logical relational plans. Walks the plan from sinks to sources.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  PigRelOpWalker.PlanPreVisitor
      Visitor that allow doing pre-visit.
    • Field Summary

      • Fields inherited from class org.apache.pig.newplan.PlanWalker

    • Constructor Summary

      Constructor Description
      PigRelOpWalker​(org.apache.pig.newplan.OperatorPlan plan)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void postOrderWalk​(org.apache.pig.newplan.Operator root, PigRelOpWalker.PlanPreVisitor visitor)
      Does post-order walk on the Pig logical relational plans from sinks to sources.
      org.apache.pig.newplan.PlanWalker spawnChildWalker​(org.apache.pig.newplan.OperatorPlan operatorPlan)  
      void walk​(org.apache.pig.newplan.PlanVisitor planVisitor)  
      • Methods inherited from class org.apache.pig.newplan.PlanWalker

        getPlan, setPlan
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PigRelOpWalker

        PigRelOpWalker​(org.apache.pig.newplan.OperatorPlan plan)
    • Method Detail

      • walk

        public void walk​(org.apache.pig.newplan.PlanVisitor planVisitor)
                  throws org.apache.pig.impl.logicalLayer.FrontendException
        Specified by:
        walk in class org.apache.pig.newplan.PlanWalker
      • postOrderWalk

        private void postOrderWalk​(org.apache.pig.newplan.Operator root,
                                   PigRelOpWalker.PlanPreVisitor visitor)
                            throws org.apache.pig.impl.logicalLayer.FrontendException
        Does post-order walk on the Pig logical relational plans from sinks to sources.
        root - The root Pig logical relational operator
        visitor - The visitor of each Pig logical operator node
        org.apache.pig.impl.logicalLayer.FrontendException - Exception during processing Pig operator
      • spawnChildWalker

        public org.apache.pig.newplan.PlanWalker spawnChildWalker​(org.apache.pig.newplan.OperatorPlan operatorPlan)
        Specified by:
        spawnChildWalker in class org.apache.pig.newplan.PlanWalker