You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by pw...@apache.org on 2014/05/06 03:26:43 UTC
git commit: SPARK-1728. JavaRDDLike.mapPartitionsWithIndex requires
ClassTag
Repository: spark
Updated Branches:
refs/heads/master cf0a8f020 -> 8e724dcba
SPARK-1728. JavaRDDLike.mapPartitionsWithIndex requires ClassTag
Author: Sandy Ryza <sa...@cloudera.com>
Closes #657 from sryza/sandy-spark-1728 and squashes the following commits:
4751443 [Sandy Ryza] SPARK-1728. JavaRDDLike.mapPartitionsWithIndex requires ClassTag
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/8e724dcb
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/8e724dcb
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/8e724dcb
Branch: refs/heads/master
Commit: 8e724dcbad411c533e4f0cd053aa878e8a60694d
Parents: cf0a8f0
Author: Sandy Ryza <sa...@cloudera.com>
Authored: Mon May 5 18:26:34 2014 -0700
Committer: Patrick Wendell <pw...@gmail.com>
Committed: Mon May 5 18:26:34 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/8e724dcb/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.