From 9ef24e9fedd8f592d4cd22851be6aace855aa835 Mon Sep 17 00:00:00 2001 From: Keiji Yoshida Date: Sat, 22 Aug 2015 18:13:17 +0900 Subject: [PATCH] Update programming-guide.md --- docs/programming-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/programming-guide.md b/docs/programming-guide.md index 982c5eabe652b..4cf83bb392636 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.