Repository: spark
Updated Branches:
  refs/heads/branch-1.5 fbf9a6ed5 -> 5f03b7ae5


Update programming-guide.md

Update `lineLengths.persist();` to 
`lineLengths.persist(StorageLevel.MEMORY_ONLY());` because `JavaRDD#persist` 
needs a parameter of `StorageLevel`.

Author: Keiji Yoshida <[email protected]>

Closes #8372 from yosssi/patch-1.

(cherry picked from commit 46fcb9e0dbb2b28110f68a3d9f6c0c47bfd197b1)
Signed-off-by: Reynold Xin <[email protected]>


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

Branch: refs/heads/branch-1.5
Commit: 5f03b7ae5506f5b18cec48034ca68af5abaa2da0
Parents: fbf9a6e
Author: Keiji Yoshida <[email protected]>
Authored: Sat Aug 22 02:38:10 2015 -0700
Committer: Reynold Xin <[email protected]>
Committed: Sat Aug 22 02:38:18 2015 -0700

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


http://git-wip-us.apache.org/repos/asf/spark/blob/5f03b7ae/docs/programming-guide.md
----------------------------------------------------------------------
diff --git a/docs/programming-guide.md b/docs/programming-guide.md
index 982c5ea..4cf83bb 100644
--- a/docs/programming-guide.md
+++ b/docs/programming-guide.md
@@ -549,7 +549,7 @@ returning only its answer to the driver program.
 If we also wanted to use `lineLengths` again later, we could add:
 
 {% highlight java %}
-lineLengths.persist();
+lineLengths.persist(StorageLevel.MEMORY_ONLY());
 {% endhighlight %}
 
 before the `reduce`, which would cause `lineLengths` to be saved in memory 
after the first time it is computed.


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

Reply via email to