摘要: sortBy函数源码:接收三个参数,第一个参数必须,第二个和第三个参数非必要 def sortBy[K]( f: (T) => K, ascending: Boolean = true, numPartitions: Int = this.partitions.length) (implicit o 阅读全文
posted @ 2018-01-05 17:49 麻雀虽小五脏俱全 阅读(29184) 评论(1) 推荐(0) 编辑
摘要: sortByKey函数作用于Key-Value形式的RDD,并对Key进行排序。 阅读全文
posted @ 2018-01-05 16:20 麻雀虽小五脏俱全 阅读(6791) 评论(0) 推荐(0) 编辑