|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.impl.plan.OperatorPlan<PhysicalOperator>
org.apache.pig.backend.hadoop.executionengine.physicalLayer.plans.PhysicalPlan
public class PhysicalPlan
The base class for all types of physical plans. This extends the Operator Plan.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.pig.impl.plan.OperatorPlan |
---|
OperatorPlan.IndexHelper<E> |
Field Summary | |
---|---|
boolean |
endOfAllInput
|
Fields inherited from class org.apache.pig.impl.plan.OperatorPlan |
---|
log, mFromEdges, mKeys, mOps, mSoftFromEdges, mSoftToEdges, mToEdges |
Constructor Summary | |
---|---|
PhysicalPlan()
|
Method Summary | |
---|---|
void |
attachInput(Tuple t)
|
PhysicalPlan |
clone()
|
void |
connect(PhysicalOperator from,
PhysicalOperator to)
Create an edge between two nodes. |
void |
detachInput()
|
void |
explain(OutputStream out)
Write a visual representation of the Physical Plan into the given output stream |
void |
explain(OutputStream out,
boolean verbose)
Write a visual representation of the Physical Plan into the given output stream |
void |
explain(PrintStream ps,
String format,
boolean verbose)
Write a visual representation of the Physical Plan into the given printstream |
boolean |
isEmpty()
|
void |
remove(PhysicalOperator op)
Remove an operator from the plan. |
void |
replace(PhysicalOperator oldNode,
PhysicalOperator newNode)
Replace an existing node in the graph with a new node. |
void |
resetOpMap()
|
void |
setOpMap(MultiMap<PhysicalOperator,PhysicalOperator> opmap)
|
String |
toString()
|
Methods inherited from class org.apache.pig.impl.plan.OperatorPlan |
---|
add, addAsLeaf, createSoftLink, disconnect, doInsertBetween, dump, getKeys, getLeaves, getOperator, getOperatorKey, getPredecessors, getRoots, getSoftLinkPredecessors, getSoftLinkSuccessors, getSuccessors, insertBetween, isSingleLeafPlan, iterator, merge, mergeSharedPlan, pathExists, pushAfter, pushBefore, removeAndReconnect, removeAndReconnectMultiSucc, removeSoftLink, size, swap, trimAbove, trimBelow |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean endOfAllInput
Constructor Detail |
---|
public PhysicalPlan()
Method Detail |
---|
public void attachInput(Tuple t)
public void detachInput()
public void explain(OutputStream out)
out
- : OutputStream to which the visual representation is writtenpublic void explain(OutputStream out, boolean verbose)
out
- : OutputStream to which the visual representation is writtenverbose
- : Amount of information to printpublic void explain(PrintStream ps, String format, boolean verbose)
ps
- : PrintStream to which the visual representation is writtenformat
- : Format to print inverbose
- : Amount of information to printpublic void connect(PhysicalOperator from, PhysicalOperator to) throws PlanException
OperatorPlan
connect
in class OperatorPlan<PhysicalOperator>
from
- Operator data will flow from.to
- Operator data will flow to.
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.public void remove(PhysicalOperator op)
OperatorPlan
remove
in class OperatorPlan<PhysicalOperator>
op
- Operator to remove.public void replace(PhysicalOperator oldNode, PhysicalOperator newNode) throws PlanException
OperatorPlan
replace
in class OperatorPlan<PhysicalOperator>
oldNode
- Node to be replacednewNode
- Node to add in place of oldNode
PlanException
public boolean isEmpty()
public String toString()
toString
in class Object
public PhysicalPlan clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public void setOpMap(MultiMap<PhysicalOperator,PhysicalOperator> opmap)
public void resetOpMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |