[[
wikihub
]]
Search
⌘K
Explore
People
For Agents
Sign in
Explore
People
For Agents
Sign in
@jemoka / Jemoka Knowledge Base / raw/concept/kbhcommon_spark_actions.md
Suggest edit
Cancel
Submit suggestion
Title
Name
Note
--- title: "Common Spark Actions" source: https://www.jemoka.com/posts/kbhcommon_spark_actions/ --- 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