From 614059fd711a5cd0351c133fc98a288f8c712ad1 Mon Sep 17 00:00:00 2001 From: Larry Xiao Date: Wed, 17 Sep 2014 07:53:02 +0800 Subject: [PATCH] doc update: note about the default null value vertices construction --- graphx/src/main/scala/org/apache/spark/graphx/VertexRDD.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graphx/src/main/scala/org/apache/spark/graphx/VertexRDD.scala b/graphx/src/main/scala/org/apache/spark/graphx/VertexRDD.scala index 210217df55ec2..befa3b7398eb3 100644 --- a/graphx/src/main/scala/org/apache/spark/graphx/VertexRDD.scala +++ b/graphx/src/main/scala/org/apache/spark/graphx/VertexRDD.scala @@ -406,6 +406,8 @@ object VertexRDD { * @param edges the [[EdgeRDD]] that these vertices may be joined with * @param defaultVal the vertex attribute to use when creating missing vertices * @param mergeFunc the commutative, associative duplicate vertex attribute merge function + * note that all vertices with default value created upon construction in VertexPartition + * so it will appear as b in (a, b) pair for mergeFunc. */ def apply[VD: ClassTag]( vertices: RDD[(VertexId, VD)], edges: EdgeRDD[_, _], defaultVal: VD, mergeFunc: (VD, VD) => VD