当前位置:网站首页>The spark operator - repartition operator
The spark operator - repartition operator
2022-08-05 06:11:00 【zdaiqing】
Source code
def repartition(numPartitions: Int)(implicit ord: Ordering[T] = null): RDD[T] = withScope {coalesce(numPartitions, shuffle = true)}
- The bottom layer calls coalesce() to implement the repartitioning operation
- Mandatory shuffle operation
Repartition and coalesce relationship
- All operators are used to reset the number of partitions
- The bottom layer of repartition calls coalesce() to implement the repartition function
- repartition forces a shuffle operation
- coalesce decides whether to perform the shuffle operation according to the parameters
References
边栏推荐
猜你喜欢
Getting Started 04 When a task depends on another task, it needs to be executed in sequence
入门文档06 向流(stream)中添加文件
UE5再次更新!扫描或手动建模面部模型可直接转为绑定好的Metahuman
你要找的cocos面试答案都在这里了!
Unity huatuo 革命性热更系列1.2 huatuo热更环境安装与示例项目
如何使用Houdini进行程序化优化?
Unity huatuo 革命性热更系列1.3 huatuo示例项目源码分析与启发
Getting Started 11 Automatically add version numbers
硬核!Cocos开发面试必备十问,让你offer拿到手软
什么是全栈设计师?
随机推荐
dsf5.0 弹框点确定没有返回值的问题
新一代解析技术——云解析
Getting Started 03 Distinguish between development and production environments ("hot update" is performed only in the production environment)
TensorFlow ObjecDetectionAPI在win10系统Anaconda3下的配置
IJCAI 2022|Boundary-Guided Camouflage Object Detection Model BGNet
C语言的一些小常识
spark源码-任务提交流程之-7-流程梳理总结
Getting Started Document 07 Staged Output
乘云科技受邀出席2022阿里云合作伙伴大会荣获“聚力行远奖”
每日一题-电话号码的字母组合-0717
无影云桌面
入门文档11 自动添加版本号
云游戏未来展望
网站ICP备案是什么呢?
Spark源码-任务提交流程之-6.1-sparkContext初始化-创建spark driver端执行环境SparkEnv
每日一题-正则表达式匹配-0715
【Day8】 RAID磁盘阵列
lvm逻辑卷及磁盘配额
Cocos Creator小游戏案例《棍子士兵》
spark算子-parallelize算子