diff options
author | Matei Zaharia <matei@eecs.berkeley.edu> | 2013-02-11 18:23:12 -0800 |
---|---|---|
committer | Matei Zaharia <matei@eecs.berkeley.edu> | 2013-02-11 18:23:12 -0800 |
commit | bfeed4725df47b578cb0e735e1ffbc836acde673 (patch) | |
tree | f988f0869cff0803a25b702e3022f9be24135018 /core/src/main | |
parent | 582d31dff99c161a51e15497db983a4b5a6d4cdb (diff) | |
parent | 21df6ffc13c7ad5cc3158675560c8364735d376e (diff) | |
download | spark-bfeed4725df47b578cb0e735e1ffbc836acde673.tar.gz spark-bfeed4725df47b578cb0e735e1ffbc836acde673.tar.bz2 spark-bfeed4725df47b578cb0e735e1ffbc836acde673.zip |
Merge pull request #465 from pwendell/java-sort-fix
SPARK-696: sortByKey should use 'ascending' parameter
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/scala/spark/api/java/JavaPairRDD.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/spark/api/java/JavaPairRDD.scala b/core/src/main/scala/spark/api/java/JavaPairRDD.scala index 8a123bdb47..55dc755358 100644 --- a/core/src/main/scala/spark/api/java/JavaPairRDD.scala +++ b/core/src/main/scala/spark/api/java/JavaPairRDD.scala @@ -452,7 +452,7 @@ class JavaPairRDD[K, V](val rdd: RDD[(K, V)])(implicit val kManifest: ClassManif */ def sortByKey(ascending: Boolean): JavaPairRDD[K, V] = { val comp = com.google.common.collect.Ordering.natural().asInstanceOf[Comparator[K]] - sortByKey(comp, true) + sortByKey(comp, ascending) } /** |