public class TezWork extends AbstractOperatorDesc
Modifier and Type | Class and Description |
---|---|
class |
TezWork.Dependency |
static class |
TezWork.VertexType |
opProps, opTraits, statistics, vectorMode
Modifier and Type | Method and Description |
---|---|
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.
|
TezWork.VertexType |
getVertexType(BaseWork w) |
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.
|
void |
setVertexType(BaseWork w,
TezWork.VertexType incomingVertexType) |
clone, getOpProps, getStatistics, getTraits, getVectorMode, setOpProps, setStatistics, setTraits, setVectorMode
public TezWork(String name)
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 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)
- public void setVertexType(BaseWork w, TezWork.VertexType incomingVertexType)
public TezWork.VertexType getVertexType(BaseWork w)
Copyright © 2017 The Apache Software Foundation. All rights reserved.