Skip to content
Snippets Groups Projects
Commit 60a91b3b authored by Andy Konwinski's avatar Andy Konwinski
Browse files

Update quick-start.md heading on Operations (not just Transformations).

parent 077ae0a1
No related branches found
No related tags found
No related merge requests found
...@@ -53,8 +53,8 @@ scala> textFile.filter(line => line.contains("Spark")).count() // How many lines ...@@ -53,8 +53,8 @@ scala> textFile.filter(line => line.contains("Spark")).count() // How many lines
res3: Long = 15 res3: Long = 15
{% endhighlight %} {% endhighlight %}
## Transformations ## More On RDD Operations
RDD transformations can be used for more complex computations. Let's say we want to find the line with the most words: RDD actions and transformations can be used for more complex computations. Let's say we want to find the line with the most words:
{% highlight scala %} {% highlight scala %}
scala> textFile.map(line => line.split(" ").size).reduce((a, b) => if (a > b) a else b) scala> textFile.map(line => line.split(" ").size).reduce((a, b) => if (a > b) a else b)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment