[[
wikihub
]]
Search
⌘K
Explore
People
For Agents
Sign in
Explore
People
For Agents
Sign in
@jemoka / Jemoka Knowledge Base / wiki/concepts/common_spark_actions.md
Suggest edit
Cancel
Submit suggestion
Title
Name
Note
--- title: "Common Spark Actions" type: concept related: [Reduce, Mapreduce] source: https://www.jemoka.com/posts/kbhcommon_spark_actions/ confidence: high status: active --- collect(): get all of your data count(): get a count of the elements in the RDD countByValue(): list the times each value appears reduce(func): the reduce part of MapReduce first(), take(n): return some number of elements top(n): return the highest n values in the list