From dfd9723dd3b3ff5d47a7f04a4330bf33ffe353ac Mon Sep 17 00:00:00 2001 From: Sandeep Singh Date: Tue, 3 May 2016 12:38:21 +0100 Subject: [MINOR][DOCS] Fix type Information in Quick Start and Programming Guide Author: Sandeep Singh Closes #12841 from techaddict/improve_docs_1. --- docs/programming-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/programming-guide.md') diff --git a/docs/programming-guide.md b/docs/programming-guide.md index cf6f1d8914..d375926a91 100644 --- a/docs/programming-guide.md +++ b/docs/programming-guide.md @@ -328,7 +328,7 @@ Text file RDDs can be created using `SparkContext`'s `textFile` method. This met {% highlight scala %} scala> val distFile = sc.textFile("data.txt") -distFile: RDD[String] = MappedRDD@1d4cee08 +distFile: org.apache.spark.rdd.RDD[String] = data.txt MapPartitionsRDD[10] at textFile at :26 {% endhighlight %} Once created, `distFile` can be acted on by dataset operations. For example, we can add up the sizes of all the lines using the `map` and `reduce` operations as follows: `distFile.map(s => s.length).reduce((a, b) => a + b)`. -- cgit v1.2.3