RDDs have two types of operations: transformations and actions.
Note
|
Operators are also called operations. |
Even if you don’t access it explicitly it cannot be referenced inside a closure as it is serialized and carried around across executors.