Answer Posted / Ram Niwas Paswan
countByKey() is an action that returns the number of occurrences for each unique key in a pair RDD (RDD of (K, V) pairs). The result is a Map[K, Long], where K is the key and Long is the count for each key.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers