org.apache.pig.impl.logicalLayer
Class LogicalPlan
java.lang.Object
org.apache.pig.impl.plan.OperatorPlan<LogicalOperator>
org.apache.pig.impl.logicalLayer.LogicalPlan
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<LogicalOperator>
public class LogicalPlan
- extends OperatorPlan<LogicalOperator>
- See Also:
- Serialized Form
Methods inherited from class org.apache.pig.impl.plan.OperatorPlan |
add, addAsLeaf, connect, createSoftLink, disconnect, doInsertBetween, dump, getKeys, getLeaves, getOperator, getOperatorKey, getPredecessors, getRoots, getSoftLinkPredecessors, getSoftLinkSuccessors, getSuccessors, insertBetween, isSingleLeafPlan, iterator, merge, mergeSharedPlan, pathExists, pushAfter, pushBefore, remove, removeAndReconnect, removeAndReconnectMultiSucc, removeSoftLink, replace, size, swap, trimAbove, trimBelow |
LogicalPlan
public LogicalPlan()
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