Repository: spark
Updated Branches:
  refs/heads/branch-1.0 4d0dd5079 -> 01e3ff01d


SPARK-1728. JavaRDDLike.mapPartitionsWithIndex requires ClassTag

Author: Sandy Ryza <[email protected]>

Closes #657 from sryza/sandy-spark-1728 and squashes the following commits:

4751443 [Sandy Ryza] SPARK-1728. JavaRDDLike.mapPartitionsWithIndex requires 
ClassTag
(cherry picked from commit 8e724dcbad411c533e4f0cd053aa878e8a60694d)

Signed-off-by: Patrick Wendell <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/01e3ff01
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/01e3ff01
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/01e3ff01

Branch: refs/heads/branch-1.0
Commit: 01e3ff01d1f9df8b8802b84e5bbb0c7ab9b3bdd7
Parents: 4d0dd50
Author: Sandy Ryza <[email protected]>
Authored: Mon May 5 18:26:34 2014 -0700
Committer: Patrick Wendell <[email protected]>
Committed: Mon May 5 18:26:47 2014 -0700

----------------------------------------------------------------------
 core/src/main/scala/org/apache/spark/api/java/JavaRDDLike.scala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/01e3ff01/core/src/main/scala/org/apache/spark/api/java/JavaRDDLike.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/org/apache/spark/api/java/JavaRDDLike.scala 
b/core/src/main/scala/org/apache/spark/api/java/JavaRDDLike.scala
index af06d1d..619bfd7 100644
--- a/core/src/main/scala/org/apache/spark/api/java/JavaRDDLike.scala
+++ b/core/src/main/scala/org/apache/spark/api/java/JavaRDDLike.scala
@@ -75,11 +75,11 @@ trait JavaRDDLike[T, This <: JavaRDDLike[T, This]] extends 
Serializable {
    * Return a new RDD by applying a function to each partition of this RDD, 
while tracking the index
    * of the original partition.
    */
-  def mapPartitionsWithIndex[R: ClassTag](
+  def mapPartitionsWithIndex[R](
       f: JFunction2[java.lang.Integer, java.util.Iterator[T], 
java.util.Iterator[R]],
       preservesPartitioning: Boolean = false): JavaRDD[R] =
     new JavaRDD(rdd.mapPartitionsWithIndex(((a,b) => f(a,asJavaIterator(b))),
-        preservesPartitioning))
+        preservesPartitioning)(fakeClassTag))(fakeClassTag)
 
   /**
    * Return a new RDD by applying a function to all elements of this RDD.

Reply via email to