Wrap an RDD and expose a collectPartitions
method that is similar to RDD.collect, but returns an Array
of per-partition Arrays.
Helpers for fetching the first element from each partition of an RDD.
Helper for determining the size of each partition of an RDD.