public final class Vertex extends Object implements Comparable<Vertex>
Modifier and Type | Class and Description |
---|---|
static class |
Vertex.EdgeType |
static class |
Vertex.VertexType |
Modifier and Type | Field and Description |
---|---|
List<Vertex> |
children |
boolean |
dummy |
Vertex.EdgeType |
edgeType |
String |
executionMode |
boolean |
hasMultiReduceOp |
List<Vertex> |
mergeJoinDummyVertexs |
String |
name |
List<Connection> |
parentConnections |
TezJsonParser |
parser |
List<Op> |
rootOps |
String |
tag |
Map<String,String> |
tagToInput |
org.json.JSONObject |
vertexObject |
Vertex.VertexType |
vertexType |
Constructor and Description |
---|
Vertex(String name,
org.json.JSONObject vertexObject,
TezJsonParser tezJsonParser) |
Modifier and Type | Method and Description |
---|---|
void |
addDependency(Connection connection) |
void |
checkMultiReduceOperator()
We check if a vertex has multiple reduce operators.
|
int |
compareTo(Vertex o) |
void |
extractOpTree() |
Op |
getSingleRSOp() |
void |
print(Printer printer,
int indentFlag,
String type,
Vertex callingVertex) |
void |
setType(String type) |
public final String name
public final TezJsonParser parser
public final List<Connection> parentConnections
public final org.json.JSONObject vertexObject
public boolean dummy
public boolean hasMultiReduceOp
public String executionMode
public String tag
public Vertex.VertexType vertexType
public Vertex.EdgeType edgeType
public Vertex(String name, org.json.JSONObject vertexObject, TezJsonParser tezJsonParser)
public void addDependency(Connection connection) throws org.json.JSONException
org.json.JSONException
public void extractOpTree() throws org.json.JSONException, org.codehaus.jackson.JsonParseException, org.codehaus.jackson.map.JsonMappingException, IOException, Exception
org.json.JSONException
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException
Exception
- We assume that there is a single top-level Map Operator Tree or a
Reduce Operator Tree in a vertexpublic void print(Printer printer, int indentFlag, String type, Vertex callingVertex) throws org.json.JSONException, Exception
org.json.JSONException
Exception
public void checkMultiReduceOperator()
public void setType(String type)
public int compareTo(Vertex o)
compareTo
in interface Comparable<Vertex>
public Op getSingleRSOp()
Copyright © 2016 The Apache Software Foundation. All rights reserved.