官术网_书友最值得收藏!

Overview of RDD transformations

As noted in preceding sections, there are two types of operation that can be used to shape data in an RDD: transformations and actions. A transformation, as the name suggests, transforms one RDD into another. In other words, it takes an existing RDD and transforms it into one or more output RDDs. In the preceding recipes, we had used a map() function, which is an example of a transformation to split the data by its tab-delimiter.

Transformations are lazy (unlike actions). They only get executed when an action is called on an RDD. For example, calling the count() function is an action; more information is available in the following section on actions.

主站蜘蛛池模板: 栾城县| 广元市| 株洲县| 新巴尔虎左旗| 英德市| 南京市| 团风县| 新乡县| 枞阳县| 满洲里市| 上犹县| 长白| 孝昌县| 涞水县| 察雅县| 池州市| 宁陵县| 新巴尔虎左旗| 银川市| 长丰县| 金堂县| 突泉县| 广汉市| 沁水县| 白玉县| 五大连池市| 巴南区| 延吉市| 大英县| 大埔县| 宕昌县| 浑源县| 青浦区| 长治市| 米脂县| 福贡县| 甘肃省| 万山特区| 民乐县| 镇巴县| 色达县|