看看map 和flatmap的位置 ... flatmap()是將函式應用於RDD中的每個元素,將返回的迭代器的所有內容構成新的RDD ... scala> rdd1.map(x=>x+1).collect.
確定! 回上一頁