当前位置:网站首页>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 Document 07 Staged Output
每日一题-两数相加-0711
Cocos Creator开发中的事件响应
Unity物理引擎中的碰撞、角色控制器、Cloth组件(布料)、关节 Joint
vim的三种模式
Lua,ILRuntime, HybridCLR(wolong)/huatuo热更对比分析
Getting Started Document 09 Standalone watch
每日一题-最长回文子串-0714
成功的独立开发者应对失败&冒名顶替综
Unity3D中的ref、out、Params三种参数的使用
【UiPath2022+C#】UiPath 练习和解决方案-变量、数据类型和控制流程
UE5再次更新!扫描或手动建模面部模型可直接转为绑定好的Metahuman
TCP/IP四层模型
“元宇宙”是个啥?都有哪些大招?
Cocos Creator小游戏案例《棍子士兵》
Spark源码-任务提交流程之-6.2-sparkContext初始化-TaskScheduler任务调度器
每日一题-删除链表的倒数第 N 个结点-0718
硬核!Cocos开发面试必备十问,让你offer拿到手软
【Day8】Knowledge about disk and disk partition
VLAN详解及实验