大數據Spark「蘑菇雲」行動-第12課:Scala函數式編程進階(匿名函數、高階函數、函數類型推斷、Currying)與Spark源碼鑑賞

一言不合直接看代碼:php def map[U: ClassTag](f: T => U): RDD[U] = withScope { val cleanF = sc.clean(f) new MapPartitionsRDD[U, T](this, (context, pid, iter) => iter.map(cleanF)) } 在map這個方法中,傳遞參數就是一個函數 函數名稱是
相關文章
相關標籤/搜索