Repository: spark
Updated Branches:
  refs/heads/master 630a994e6 -> 46fcb9e0d


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.


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

Branch: refs/heads/master
Commit: 46fcb9e0dbb2b28110f68a3d9f6c0c47bfd197b1
Parents: 630a994
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:10 2015 -0700

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


http://git-wip-us.apache.org/repos/asf/spark/blob/46fcb9e0/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