【发布时间】:2014-12-04 02:28:14
【问题描述】:
我很难在 Spark 文档中找到会导致随机播放的操作和不会导致随机播放的操作。在这个列表中,哪些会导致洗牌,哪些不会?
地图和过滤器没有。但是,我不确定其他人。
map(func)
filter(func)
flatMap(func)
mapPartitions(func)
mapPartitionsWithIndex(func)
sample(withReplacement, fraction, seed)
union(otherDataset)
intersection(otherDataset)
distinct([numTasks]))
groupByKey([numTasks])
reduceByKey(func, [numTasks])
aggregateByKey(zeroValue)(seqOp, combOp, [numTasks])
sortByKey([ascending], [numTasks])
join(otherDataset, [numTasks])
cogroup(otherDataset, [numTasks])
cartesian(otherDataset)
pipe(command, [envVars])
coalesce(numPartitions)
【问题讨论】:
标签: java python scala apache-spark