org.apache.pig.backend.hadoop.executionengine.physicalLayer.plans
Class PhysicalPlan
java.lang.Object
org.apache.pig.impl.plan.OperatorPlan<PhysicalOperator>
org.apache.pig.backend.hadoop.executionengine.physicalLayer.plans.PhysicalPlan
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable
public class PhysicalPlan
- extends OperatorPlan<PhysicalOperator>
- implements Cloneable
The base class for all types of physical plans.
This extends the Operator Plan.
- See Also:
- Serialized Form
Methods inherited from class org.apache.pig.impl.plan.OperatorPlan |
add, addAsLeaf, disconnect, dump, getKeys, getLeaves, getOperator, getOperatorKey, getPredecessors, getRoots, getSuccessors, insertBetween, isSingleLeafPlan, iterator, merge, removeAndReconnect, size, trimAbove, trimBelow |
endOfAllInput
public boolean endOfAllInput
PhysicalPlan
public PhysicalPlan()
attachInput
public void attachInput(Tuple t)
explain
public void explain(OutputStream out)
- Write a visual representation of the Physical Plan
into the given output stream
- Parameters:
out
- : OutputStream to which the visual representation is written
connect
public void connect(PhysicalOperator from,
PhysicalOperator to)
throws PlanException
- Description copied from class:
OperatorPlan
- Create an edge between two nodes. The direction of the edge implies data
flow.
- Overrides:
connect
in class OperatorPlan<PhysicalOperator>
- Parameters:
from
- Operator data will flow from.to
- Operator data will flow to.
- Throws:
PlanException
- if this edge will create multiple inputs for an
operator that does not support multiple inputs or create multiple outputs
for an operator that does not support multiple outputs.
remove
public void remove(PhysicalOperator op)
- Description copied from class:
OperatorPlan
- Remove an operator from the plan. Any edges that the node has will
be removed as well.
- Overrides:
remove
in class OperatorPlan<PhysicalOperator>
- Parameters:
op
- Operator to remove.
replace
public void replace(PhysicalOperator oldNode,
PhysicalOperator newNode)
throws PlanException
- Description copied from class:
OperatorPlan
- Replace an existing node in the graph with a new node. The new node
will be connected to all the nodes the old node was. The old node will
be removed.
- Overrides:
replace
in class OperatorPlan<PhysicalOperator>
- Parameters:
oldNode
- Node to be replacednewNode
- Node to add in place of oldNode
- Throws:
PlanException
isEmpty
public boolean isEmpty()
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
clone
public PhysicalPlan clone()
throws CloneNotSupportedException
- Overrides:
clone
in class Object
- Throws:
CloneNotSupportedException
Copyright © ${year} The Apache Software Foundation