transformation(返回值为RDD) map flatMap filter mapPartitions mapPartitionsWithIndex sample union subtract intersection distinct reduceByKey groupByKey aggregateByKey foldByKey combineByKey sortByKey join cogroup cartesian pipe coalesce repartition repartitionAndSortWithinPartitions action reduce collect count first takeSample take takeOrdered saveAsTextFile saveAsSequenceFile saveAsObjectFile countByKey foreach