Skip to content

Commit

Permalink
[MINOR][DOC] Add missing call of update() in examples of PeriodicGr…
Browse files Browse the repository at this point in the history
…aphCheckpointer & PeriodicRDDCheckpointer

## What changes were proposed in this pull request?
forgot to call `update()` with `graph1` & `rdd1` in examples for `PeriodicGraphCheckpointer` & `PeriodicRDDCheckpoin`
## How was this patch tested?
existing tests

Author: Zheng RuiFeng <[email protected]>

Closes apache#19198 from zhengruifeng/fix_doc_checkpointer.
  • Loading branch information
zhengruifeng authored and yanboliang committed Sep 14, 2017
1 parent 8d8641f commit 66cb72d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import org.apache.spark.util.PeriodicCheckpointer
* {{{
* val (rdd1, rdd2, rdd3, ...) = ...
* val cp = new PeriodicRDDCheckpointer(2, sc)
* cp.update(rdd1)
* rdd1.count();
* // persisted: rdd1
* cp.update(rdd2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import org.apache.spark.util.PeriodicCheckpointer
* {{{
* val (graph1, graph2, graph3, ...) = ...
* val cp = new PeriodicGraphCheckpointer(2, sc)
* cp.updateGraph(graph1)
* graph1.vertices.count(); graph1.edges.count()
* // persisted: graph1
* cp.updateGraph(graph2)
Expand Down

0 comments on commit 66cb72d

Please sign in to comment.