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(String resourceName,
org.apache.hadoop.fs.Path remoteFsPath) |
void |
addExtraResource(URL url) |
boolean |
disconnect(TezOperator from,
TezOperator to)
Remove an edge from between two nodes.
|
org.apache.hadoop.security.Credentials |
getCredentials() |
int |
getEstimatedTotalParallelism() |
Map<String,org.apache.hadoop.yarn.api.records.LocalResource> |
getExtraResources() |
static List<TezOperator> |
getGrandParentsForGraceParallelism(TezOperPlan tezPlan,
TezOperator op) |
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) |
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, trimBelow
public org.apache.hadoop.security.Credentials getCredentials()
public int getEstimatedTotalParallelism()
public void setEstimatedParallelism(int estimatedTotalParallelism)
public void addExtraResource(URL url) throws IOException
IOException
public void addExtraResource(String resourceName, org.apache.hadoop.fs.Path remoteFsPath) throws IOException
IOException
public Map<String,org.apache.hadoop.yarn.api.records.LocalResource> getExtraResources() throws Exception
Exception
public void remove(TezOperator op)
OperatorPlan
remove
in class OperatorPlan<TezOperator>
op
- Operator to remove.public boolean disconnect(TezOperator from, TezOperator to)
OperatorPlan
OperatorPlan.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 intoPlanException
public static List<TezOperator> getGrandParentsForGraceParallelism(TezOperPlan tezPlan, TezOperator op)
Copyright © 2007-2012 The Apache Software Foundation