Skip to content

Commit

Permalink
[SPARK-4459] changed type parameter for keyBy from K to U
Browse files Browse the repository at this point in the history
  • Loading branch information
Saldanha committed Nov 18, 2014
1 parent d5f73c3 commit 54b1095
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,8 @@ trait JavaRDDLike[T, This <: JavaRDDLike[T, This]] extends Serializable {
/**
* Creates tuples of the elements in this RDD by applying `f`.
*/
def keyBy[K](f: JFunction[T, K]): JavaPairRDD[K, T] = {
implicit val ctag: ClassTag[K] = fakeClassTag
def keyBy[U](f: JFunction[T, U]): JavaPairRDD[U, T] = {
implicit val ctag: ClassTag[U] = fakeClassTag
JavaPairRDD.fromRDD(rdd.keyBy(f))
}

Expand Down

0 comments on commit 54b1095

Please sign in to comment.