willian
18702515157@163.com
摘要: mapPartitionsWithIndex 传入参数是一个接受两个参数的函数,第一参数是partition的编号,第二个参数是各个分区的数据迭代器 aggregate val rdd3 = sc.parallelize(List("12","23","345","4567"),2)rdd3.agg 阅读全文
posted @ 2017-03-17 16:38 willian_zhang 阅读(515) 评论(0) 推荐(0) 编辑