Package org.apache.nemo.common.dag
Class Edge<V extends Vertex>
- java.lang.Object
-
- org.apache.nemo.common.dag.Edge<V>
-
- Type Parameters:
V
- the vertex type.
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
IREdge
,RuntimeEdge
public class Edge<V extends Vertex> extends java.lang.Object implements java.io.Serializable
Connects two vertices of a DAG. This class can be extended for various DAG representations.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
getDst()
java.lang.String
getId()
java.lang.Integer
getNumericId()
com.fasterxml.jackson.databind.JsonNode
getPropertiesAsJsonNode()
V
getSrc()
-
-
-
Method Detail
-
getId
public final java.lang.String getId()
- Returns:
- the ID of the edge.
-
getNumericId
public final java.lang.Integer getNumericId()
- Returns:
- the numeric ID of the edge. (for edge id "edge-2", this method returns 2)
-
getSrc
public final V getSrc()
- Returns:
- source vertex.
-
getDst
public final V getDst()
- Returns:
- destination vertex.
-
getPropertiesAsJsonNode
public com.fasterxml.jackson.databind.JsonNode getPropertiesAsJsonNode()
- Returns:
- JSON representation of additional properties
-
-