Skip to content

Commit 614059f

Browse files
committed
doc update: note about the default null value vertices construction
1 parent dfdb3c9 commit 614059f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graphx/src/main/scala/org/apache/spark/graphx/VertexRDD.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,8 @@ object VertexRDD {
406406
* @param edges the [[EdgeRDD]] that these vertices may be joined with
407407
* @param defaultVal the vertex attribute to use when creating missing vertices
408408
* @param mergeFunc the commutative, associative duplicate vertex attribute merge function
409+
* note that all vertices with default value created upon construction in VertexPartition
410+
* so it will appear as b in (a, b) pair for mergeFunc.
409411
*/
410412
def apply[VD: ClassTag](
411413
vertices: RDD[(VertexId, VD)], edges: EdgeRDD[_, _], defaultVal: VD, mergeFunc: (VD, VD) => VD

0 commit comments

Comments
 (0)