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 |
String |
edgeType |
String |
executionMode |
List<Op> |
inputOps |
protected org.slf4j.Logger |
LOG |
List<Vertex> |
mergeJoinDummyVertexs |
String |
name |
int |
numReduceOp |
List<Op> |
outputOps |
List<Connection> |
parentConnections |
DagJsonParser |
parser |
Stage |
stage |
String |
tag |
Map<String,String> |
tagToInput |
org.json.JSONObject |
vertexObject |
Vertex.VertexType |
vertexType |
| Constructor and Description |
|---|
Vertex(String name,
org.json.JSONObject vertexObject,
Stage stage,
DagJsonParser dagJsonParser) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(Connection connection) |
void |
checkMultiReduceOperator(boolean rewriteObject)
We check if a vertex has multiple reduce operators.
|
int |
compareTo(Vertex o) |
void |
extractOpTree() |
Op |
getJoinRSOp(Vertex joinVertex) |
void |
print(Printer printer,
int indentFlag,
String type,
Vertex callingVertex) |
void |
setType(String type) |
public final String name
public final Stage stage
public final DagJsonParser parser
public final List<Connection> parentConnections
public final org.json.JSONObject vertexObject
public boolean dummy
public int numReduceOp
public String executionMode
public String tag
protected final org.slf4j.Logger LOG
public Vertex.VertexType vertexType
public String edgeType
public Vertex(String name, org.json.JSONObject vertexObject, Stage stage, DagJsonParser dagJsonParser)
public void addDependency(Connection connection) throws org.json.JSONException
org.json.JSONExceptionpublic void extractOpTree()
throws org.json.JSONException,
org.codehaus.jackson.JsonParseException,
org.codehaus.jackson.map.JsonMappingException,
IOException,
Exception
org.json.JSONExceptionorg.codehaus.jackson.JsonParseExceptionorg.codehaus.jackson.map.JsonMappingExceptionIOExceptionException - 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.JSONExceptionExceptionpublic void checkMultiReduceOperator(boolean rewriteObject)
throws org.json.JSONException
org.json.JSONExceptionpublic void setType(String type)
public int compareTo(Vertex o)
compareTo in interface Comparable<Vertex>Copyright © 2019 The Apache Software Foundation. All Rights Reserved.