Spark算子[13]:sortByKey、sortBy、二次排序 源碼實例詳解

sortBy是對標準的RDD進行排序。[在scala語言中,RDD與PairRDD沒有太嚴格的界限]。 sortByKey函數是對PairRDD進行排序,也就是有Key和Value的RDD。java sortBy 源碼python /** * RDD.scala * Return this RDD sorted by the given key function. */ def sortBy[
相關文章
相關標籤/搜索