Package org.apache.spark.graphx
Class EdgeTriplet<VD,ED> 
Object
org.apache.spark.graphx.Edge<ED>
org.apache.spark.graphx.EdgeTriplet<VD,ED> 
- Type Parameters:
- VD- the type of the vertex attribute.
- ED- the type of the edge attribute
- All Implemented Interfaces:
- Serializable,- scala.Equals,- scala.Product
An edge triplet represents an edge along with the vertex attributes of its neighboring vertices.
 
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondstAttr()The destination vertex attributeotherVertexAttr(long vid) Given one vertex in the edge return the other vertex.srcAttr()The source vertex attributetoString()toTuple()vertexAttr(long vid) Get the vertex object for the given vertex in the edge.Methods inherited from class org.apache.spark.graphx.Edgeattr, dstId, otherVertexId, relativeDirection, srcIdMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefix
- 
Constructor Details- 
EdgeTripletpublic EdgeTriplet()
 
- 
- 
Method Details- 
dstAttrThe destination vertex attribute- Returns:
- (undocumented)
 
- 
otherVertexAttrGiven one vertex in the edge return the other vertex.- Parameters:
- vid- the id one of the two vertices on the edge
- Returns:
- the attribute for the other vertex on the edge
 
- 
srcAttrThe source vertex attribute- Returns:
- (undocumented)
 
- 
toString
- 
toTuple
- 
vertexAttrGet the vertex object for the given vertex in the edge.- Parameters:
- vid- the id of one of the two vertices on the edge
- Returns:
- the attr for the vertex with that id
 
 
-