Actions
As discussed previously, Actions are what makes Spark perform the actual computation from the graph that the framework has been building in the background while you were busy performing transformations on it. While there is a long list of actions offered by Spark, we'll list the most common actions offered by Spark and take you through some of the most common ones:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Tip
The methods saveAsSequenceFile() and saveAsObjectFil() are only available in Java and Scala.
We have already seen reduce(), collect(), and count() ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access