03 Spark:RDD转换算子之双Value类型_spark中双value类型 csdn-CSDN博客

网站介绍:文章浏览阅读198次。RDD的转换算子之双Value类型文章目录RDD的转换算子之双Value类型1. union(otherDataSet)2. subtract(otherDataSet)3. intersection(otherDataSet)4. cartesian(otherDataSet)5. zip(otherDataSet)1. union(otherDataSet)作用: 求并集,对源 RDD 和参数 RDD 求并集之后返回一个新的 RDD。示例:scala> val rdd1 = sc_spark中双value类型 csdn