count
Last updated
Was this helpful?
Last updated
Was this helpful?
The count action returns the number of elements or records in an RDD. It can be called at any time against any Spark RDD, causing the RDD and all of the RDDs in its lineage to be evaluated. For this reason, count is often a convenient way to force evaluation of an RDD.
Syntax:
RDD.count()