Similarly, this should also be defined in JavaRDDLike instead of JavaRDD (see https://github.com/eklavya/incubator-spark/blob/master/core/src/main/scala/org/apache/spark/api/java/JavaRDDLike.scala?pr=%2Fapache%2Fincubator-spark%2Fpull%2F406#L233)