public class TezOperPlan extends OperatorPlan<TezOperator>
OperatorPlan.IndexHelper<E>log, mFromEdges, mKeys, mOps, mSoftFromEdges, mSoftToEdges, mToEdges| Constructor and Description |
|---|
TezOperPlan() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExtraResource(java.lang.String resourceName,
org.apache.hadoop.fs.Path remoteFsPath) |
void |
addExtraResource(java.net.URL url) |
boolean |
disconnect(TezOperator from,
TezOperator to)
Remove an edge from between two nodes.
|
int |
getEstimatedTotalParallelism() |
java.util.Map<java.lang.String,LocalResource> |
getExtraResources() |
void |
moveTree(TezOperator root,
TezOperPlan newPlan)
Move everything below a given operator to the new operator plan.
|
void |
remove(TezOperator op)
Remove an operator from the plan.
|
void |
setEstimatedParallelism(int estimatedTotalParallelism) |
java.lang.String |
toString() |
add, addAsLeaf, connect, createSoftLink, doInsertBetween, dump, getKeys, getLeaves, getOperator, getOperatorKey, getPredecessors, getRoots, getSoftLinkPredecessors, getSoftLinkSuccessors, getSuccessors, insertBetween, isSingleLeafPlan, iterator, merge, mergeSharedPlan, pathExists, pushAfter, pushBefore, removeAndReconnect, removeAndReconnectMultiSucc, removeSoftLink, replace, size, swap, trimAbove, trimBelowpublic int getEstimatedTotalParallelism()
public void setEstimatedParallelism(int estimatedTotalParallelism)
public java.lang.String toString()
toString in class java.lang.Objectpublic void addExtraResource(java.net.URL url)
throws java.io.IOException
java.io.IOExceptionpublic void addExtraResource(java.lang.String resourceName,
org.apache.hadoop.fs.Path remoteFsPath)
throws java.io.IOException
java.io.IOExceptionpublic java.util.Map<java.lang.String,LocalResource> getExtraResources()
throws java.lang.Exception
java.lang.Exceptionpublic void remove(TezOperator op)
OperatorPlanremove in class OperatorPlan<TezOperator>op - Operator to remove.public boolean disconnect(TezOperator from, TezOperator to)
OperatorPlanOperatorPlan.insertBetween(Operator, Operator, Operator)
if disconnect is used in the process of inserting a new node between two nodes
by calling disconnect followed by a connect.disconnect in class OperatorPlan<TezOperator>from - Operator data would flow from.to - Operator data would flow to.public void moveTree(TezOperator root, TezOperPlan newPlan) throws PlanException
root - Operator to move everything under including the root operatornewPlan - new operator plan to move things intoPlanExceptionCopyright © 2007-2012 The Apache Software Foundation