|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.apache.spark.graphx.EdgeContext<VD,ED,A>
public abstract class EdgeContext<VD,ED,A>
Represents an edge along with its neighboring vertices and allows sending messages along the
edge. Used in Graph.aggregateMessages(scala.Function1
.
Constructor Summary | |
---|---|
EdgeContext()
|
Method Summary | ||
---|---|---|
abstract ED |
attr()
The attribute associated with the edge. |
|
abstract VD |
dstAttr()
The vertex attribute of the edge's destination vertex. |
|
abstract long |
dstId()
The vertex id of the edge's destination vertex. |
|
abstract void |
sendToDst(A msg)
Sends a message to the destination vertex. |
|
abstract void |
sendToSrc(A msg)
Sends a message to the source vertex. |
|
abstract VD |
srcAttr()
The vertex attribute of the edge's source vertex. |
|
abstract long |
srcId()
The vertex id of the edge's source vertex. |
|
EdgeTriplet<VD,ED> |
toEdgeTriplet()
Converts the edge and vertex properties into an EdgeTriplet for convenience. |
|
static
|
unapply(EdgeContext<VD,ED,A> edge)
Extractor mainly used for Graph#aggregateMessages*. |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EdgeContext()
Method Detail |
---|
public static <VD,ED,A> scala.Some<scala.Tuple5<Object,Object,VD,VD,ED>> unapply(EdgeContext<VD,ED,A> edge)
val messages = graph.aggregateMessages(
case ctx @ EdgeContext(_, _, _, _, attr) =>
ctx.sendToDst(attr)
, _ + _)
edge
- (undocumented)
public abstract long srcId()
public abstract long dstId()
public abstract VD srcAttr()
public abstract VD dstAttr()
public abstract ED attr()
public abstract void sendToSrc(A msg)
public abstract void sendToDst(A msg)
public EdgeTriplet<VD,ED> toEdgeTriplet()
EdgeTriplet
for convenience.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |