Skip to content
Snippets Groups Projects
Commit c82d4f07 authored by Binh Nguyen's avatar Binh Nguyen
Browse files

Use braces to shorten the line.

parent 5013fb64
No related branches found
No related tags found
No related merge requests found
......@@ -583,7 +583,9 @@ class JavaPairRDD[K, V](val rdd: RDD[(K, V)])(implicit val kManifest: ClassManif
* (in the `save` case, they will be written to multiple `part-X` files in the filesystem, in
* order of the keys).
*/
def sortByKey(comp: Comparator[K], ascending: Boolean): JavaPairRDD[K, V] = sortByKey(comp, ascending, rdd.partitions.size)
def sortByKey(comp: Comparator[K], ascending: Boolean): JavaPairRDD[K, V] = {
sortByKey(comp, ascending, rdd.partitions.size)
}
/**
* Sort the RDD by key, so that each partition contains a sorted range of the elements. Calling
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment