huaxingao commented on a change in pull request #26148: 
[SPARK-29499][CORE][PYSPARK] Add mapPartitionsWithIndex for RDDBarrier
URL: https://github.com/apache/spark/pull/26148#discussion_r336540485
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/rdd/RDDBarrier.scala
 ##########
 @@ -54,5 +54,27 @@ class RDDBarrier[T: ClassTag] private[spark] (rdd: RDD[T]) {
     )
   }
 
+  /**
+   * :: Experimental ::
+   * Returns a new RDD by applying a function to each partition of the wrapped 
RDD,
+   * where tasks are launched together in a barrier stage.
+   * The interface is the same as 
[[org.apache.spark.rdd.RDD#mapPartitionsWithIndex]].
+   * Please see the API doc there.
+   * @see [[org.apache.spark.BarrierTaskContext]]
+   */
+  @Experimental
+  @Since("2.4.0")
 
 Review comment:
   ```@Since("3.0.0")```?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to