Spark 二次排序

Spark 二次排序 废话很少说直接上代码 定义二次排序的key class SecondSortKey(val first: Int, val second: Int) extends Ordered[SecondSortKey] with Serializable { def compare(that: SecondSortKey): Int = { if(this
相关文章
相关标签/搜索