I want get elements from beside partitions on the current partition when i'm using mapPartition
or another function.
More generally, i'm curious to know how to get access to a particular partition from a RDD.
val rdd = sc.parallelize(Array(1,2,3,4,5,6,7,8,9,10,11,12),4)
I would like
val rdd_2 = rdd.something(2) = RDD[Array(4,5,6)]
Thank you to tell me if it's unclear.