特牛网址导航

spark(五):RDD API接口-CSDN博客

网友收藏
文章目录说明分享接口说明mapfilterflatMapmapPartitionsmapPartitionsWithIndexmapWithflatMapWithcoalescerepartitionrandomSplitglomunion并集distinct总结说明本文记录一部分Spark RDD接口Scala代码实现。分享大数据博客列表接口说明map对RDD中的每个元素执行一个指定函数产生一个新的RDD。任何原RDD中的元素在新RDD中都有且只有一个元素与之对应,实例如下:v