2016-06-30 226 views

回答

2

嘗試flatMapValues

rdd.flatMapValues(identity) 

flatMap

rdd.flatMap{ case (k, vs) => vs.map(v => (k, v)) } 
相關問題