Open main menu
CDOT Wiki
β
Search
Changes
← Older edit
Newer edit →
GPU621/Apache Spark Fall 2022
5 bytes removed
,
21:14, 3 December 2022
→
RDD APIs
// map from one RDD to another RDD
JavaRDD<Double> mapRDD = javaRDD.map(value -> Math.sqrt(value));
// 3.3166247903554, 4.69041575982343, 5.744562646538029, 6.6332495807108
mapRDD.foreach(value->System.out.println(value));
RobinYu
92
edits