You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by rx...@apache.org on 2015/08/22 11:38:14 UTC
spark git commit: Update programming-guide.md
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 <yo...@gmail.com>
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 <yo...@gmail.com>
Authored: Sat Aug 22 02:38:10 2015 -0700
Committer: Reynold Xin <rx...@databricks.com>
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: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org