Apache Spark RDD mapPartitions and mapPartitionsWithIndex
mapPartitions and mapPartitionsWithIndex performs a map operation on an entire partition and returns a new RDD.
mapPartitions and mapPartitionsWithIndex performs a map operation on an entire partition and returns a new RDD.