(Since version 1.0.0) use mapPartitionsWithIndex and filter
(Since version 1.0.0) use mapPartitionsWithIndex and flatMap
(Since version 1.0.0) use mapPartitionsWithIndex and foreach
(Since version 1.2.0) use TaskContext.get
(Since version 0.7.0) use mapPartitionsWithIndex
(Since version 1.0.0) use mapPartitionsWithIndex
(Since version 1.0.0) use collect
An RDD which instruments its operations. For further details and usage instructions see the MetricsContext class.
This class needs to be in the org.apache.spark.rdd package, otherwise Spark will record the incorrect call site (which in turn becomes the stage name). This can be fixed when we use Spark 1.1.1 (needs SPARK-1853).