spark源碼解讀3之RDD中top源碼解讀

更多代碼請見:https://github.com/xubo245/SparkLearninghtml spark源碼解讀系列環境:spark-2.0.1 (20161103github下載版)java 1.理解 輸出讀取中經常使用到topK算法,RDD也提供了top方法。特別是RDD過大時,要慎用RDD的collect方法,建議使用take和top方法。若是要有序,可使用top方法。python
相關文章
相關標籤/搜索