|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.hive.ql.plan.AbstractOperatorDesc org.apache.hadoop.hive.ql.plan.TezWork
public class TezWork
TezWork. This class encapsulates all the work objects that can be executed in a single tez job. Currently it's basically a tree with MapWork at the leaves and and ReduceWork in all other nodes.
Nested Class Summary | |
---|---|
class |
TezWork.Dependency
|
Constructor Summary | |
---|---|
TezWork(String name)
|
Method Summary | |
---|---|
void |
add(BaseWork w)
add creates a new node in the graph without any connections |
void |
addAll(BaseWork[] bws)
add all nodes in the collection without any connections |
void |
addAll(Collection<BaseWork> c)
add all nodes in the collection without any connections |
String[] |
configureJobConfAndExtractJars(org.apache.hadoop.mapred.JobConf jobConf)
Calls configureJobConf on instances of work that are part of this TezWork. |
void |
connect(BaseWork a,
BaseWork b,
TezEdgeProperty edgeProp)
connect adds an edge between a and b. |
void |
disconnect(BaseWork a,
BaseWork b)
disconnect removes an edge between a and b. |
List<BaseWork> |
getAllWork()
getAllWork returns a topologically sorted list of BaseWork |
Collection<BaseWork> |
getAllWorkUnsorted()
|
List<BaseWork> |
getChildren(BaseWork work)
getChildren returns all the nodes with edges leading out of work |
Map<String,List<TezWork.Dependency>> |
getDependencyMap()
|
TezEdgeProperty |
getEdgeProperty(BaseWork a,
BaseWork b)
returns the edge type connecting work a and b |
TezEdgeProperty.EdgeType |
getEdgeType(BaseWork a,
BaseWork b)
|
Set<BaseWork> |
getLeaves()
getLeaves returns all nodes that do not have a child |
String |
getName()
|
List<BaseWork> |
getParents(BaseWork work)
getParents returns all the nodes with edges leading into work |
Set<BaseWork> |
getRoots()
getRoots returns all nodes that do not have a parent. |
Map<String,BaseWork> |
getWorkMap()
getWorkMap returns a map of "vertex name" to BaseWork |
void |
remove(BaseWork work)
remove removes a node from the graph and removes all edges with work as start or end point. |
Methods inherited from class org.apache.hadoop.hive.ql.plan.AbstractOperatorDesc |
---|
clone, getOpTraits, getStatistics, setOpTraits, setStatistics, setVectorMode |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TezWork(String name)
Method Detail |
---|
public String getName()
public Map<String,BaseWork> getWorkMap()
public List<BaseWork> getAllWork()
public Collection<BaseWork> getAllWorkUnsorted()
public void addAll(Collection<BaseWork> c)
public void addAll(BaseWork[] bws)
public void add(BaseWork w)
public void disconnect(BaseWork a, BaseWork b)
public Set<BaseWork> getRoots()
public Set<BaseWork> getLeaves()
public List<BaseWork> getParents(BaseWork work)
public List<BaseWork> getChildren(BaseWork work)
public void remove(BaseWork work)
public TezEdgeProperty.EdgeType getEdgeType(BaseWork a, BaseWork b)
public TezEdgeProperty getEdgeProperty(BaseWork a, BaseWork b)
public Map<String,List<TezWork.Dependency>> getDependencyMap()
public String[] configureJobConfAndExtractJars(org.apache.hadoop.mapred.JobConf jobConf)
jobConf
- Job configuration.
public void connect(BaseWork a, BaseWork b, TezEdgeProperty edgeProp)
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |