Actually, one more thing: I believe this should return a JavaRDD / JavaPairRDD / etc based on what it was called on, not an RDD. Look at the `filter` method for example. In order to deal with this, it was implemented separately in JavaRDD.scala, JavaPairRDD.scala, and JavaDoubleRDD.scala.