org.apache.pig.impl.logicalLayer
Class LogicalPlan

java.lang.Object
  extended by org.apache.pig.impl.plan.OperatorPlan<LogicalOperator>
      extended by org.apache.pig.impl.logicalLayer.LogicalPlan
All Implemented Interfaces:
Serializable, Cloneable, Iterable<LogicalOperator>

public class LogicalPlan
extends OperatorPlan<LogicalOperator>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.pig.impl.plan.OperatorPlan
OperatorPlan.IndexHelper<E>
 
Field Summary
 
Fields inherited from class org.apache.pig.impl.plan.OperatorPlan
log, mFromEdges, mKeys, mOps, mToEdges
 
Constructor Summary
LogicalPlan()
           
 
Method Summary
static Pair<LOProject,LOCast> chainOfProjects(LogicalPlan plan)
          A utility method to check if a plan contains a chain of projection operators with or without casts
 LogicalPlan clone()
          Do not use the clone method directly.
 void explain(OutputStream out, PrintStream ps)
           
 void explain(PrintStream ps, String format, boolean verbose)
           
 LogicalOperator getSingleLeafPlanOutputOp()
           
 byte getSingleLeafPlanOutputType()
           
 
Methods inherited from class org.apache.pig.impl.plan.OperatorPlan
add, addAsLeaf, connect, disconnect, dump, getKeys, getLeaves, getOperator, getOperatorKey, getPredecessors, getRoots, getSuccessors, insertBetween, isSingleLeafPlan, iterator, merge, mergeSharedPlan, pushAfter, pushBefore, remove, removeAndReconnect, removeAndReconnectMultiSucc, replace, size, swap, trimAbove, trimBelow
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogicalPlan

public LogicalPlan()
Method Detail

getSingleLeafPlanOutputOp

public LogicalOperator getSingleLeafPlanOutputOp()

getSingleLeafPlanOutputType

public byte getSingleLeafPlanOutputType()

explain

public void explain(OutputStream out,
                    PrintStream ps)
             throws VisitorException,
                    IOException
Overrides:
explain in class OperatorPlan<LogicalOperator>
Throws:
VisitorException
IOException

explain

public void explain(PrintStream ps,
                    String format,
                    boolean verbose)
             throws VisitorException,
                    IOException
Throws:
VisitorException
IOException

clone

public LogicalPlan clone()
                  throws CloneNotSupportedException
Do not use the clone method directly. Use LogicalPlanCloner instead.

Overrides:
clone in class Object
Throws:
CloneNotSupportedException

chainOfProjects

public static Pair<LOProject,LOCast> chainOfProjects(LogicalPlan plan)
A utility method to check if a plan contains a chain of projection operators with or without casts

Parameters:
plan - input plan
Returns:
a pair consisting of the top most projection operator and the cast (if present) if there is a chain of projection operators with or without casts; null otherwise


Copyright © ${year} The Apache Software Foundation