EdgeContext Class

abstract class EdgeContext[VD, ED, A] extends AnyRef

Instance constructor:

new EdgeContext()

Abstract active members:

abstract def attr: ED 
The attribute associated with the edge.

abstract def dstAttr: VD 
The vertex attribute of the edge's destination vertex.

abstract def dstId: VertexId 
The vertex id of the edge's destination vertex.

abstract def sendToDst(msg: A): Unit 
Sends a message to the destination vertex.

abstract def sendToSrc(msg: A): Unit 
Sends a message to the source vertex.

abstract def srcAttr: VD 
The vertex attribute of the edge's source vertex.

abstract def srcId: VertexId 
The vertex id of the edge's source vertex.

Example:

Reference:

https://github.com/apache/spark/blob/v2.4.5/graphx/src/main/scala/org/apache/spark/graphx/EdgeContext.scala

Last updated

Was this helpful?