Explain countByValue() operation in Apache Spark RDD?
Answer Posted / Sandeep Rawat
countByValue() is an action that returns the number of occurrences for each unique value in an RDD. The result is a Map[T, Long], where T is the data type of elements in the RDD and Long is the count for each value.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers