Repository: spark
Updated Branches:
  refs/heads/branch-2.2 d6542fa3f -> ca950c17f


[DOC][MINOR] Fix minor error in the code of graphx guide

## What changes were proposed in this pull request?

Fix minor error in the code "sketch of pregel implementation" of GraphX guide.
This fixed error relates to `[SPARK-12995][GraphX] Remove deprecate APIs from 
Pregel`

## How was this patch tested?

N/A

Closes #22780 from WeichenXu123/minor_doc_update1.

Authored-by: WeichenXu <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 3b4f35f568eb3844d2a789c8a409bc705477df6b)
Signed-off-by: Dongjoon Hyun <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/ca950c17
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/ca950c17
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/ca950c17

Branch: refs/heads/branch-2.2
Commit: ca950c17f19f891d7fd8dd45dcc7af0e8f8fc58b
Parents: d6542fa
Author: WeichenXu <[email protected]>
Authored: Sat Oct 20 10:32:09 2018 -0700
Committer: Dongjoon Hyun <[email protected]>
Committed: Sat Oct 20 10:33:07 2018 -0700

----------------------------------------------------------------------
 docs/graphx-programming-guide.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/ca950c17/docs/graphx-programming-guide.md
----------------------------------------------------------------------
diff --git a/docs/graphx-programming-guide.md b/docs/graphx-programming-guide.md
index 46225dc..14da2d6 100644
--- a/docs/graphx-programming-guide.md
+++ b/docs/graphx-programming-guide.md
@@ -726,7 +726,7 @@ class GraphOps[VD, ED] {
     var g = mapVertices( (vid, vdata) => vprog(vid, vdata, initialMsg) 
).cache()
 
     // compute the messages
-    var messages = g.mapReduceTriplets(sendMsg, mergeMsg)
+    var messages = GraphXUtils.mapReduceTriplets(g, sendMsg, mergeMsg)
     var activeMessages = messages.count()
     // Loop until no messages remain or maxIterations is achieved
     var i = 0


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to