Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should mention RangePartitioner in explaining sortByKey #14

Open
darkjh opened this issue Mar 12, 2015 · 1 comment
Open

Should mention RangePartitioner in explaining sortByKey #14

darkjh opened this issue Mar 12, 2015 · 1 comment

Comments

@darkjh
Copy link
Contributor

darkjh commented Mar 12, 2015

在解释sortByKey的时候:

https://github.com/JerryLead/SparkInternals/blob/master/markdown/2-JobLogicalPlan.md

sortByKey实际使用的是RangePartitioner。分片排序之后,我们还需要分片之间的顺序关系才能最终输出排序后的结果。

代码:

https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/rdd/OrderedRDDFunctions.scala#L62

@JerryLead
Copy link
Owner

谢谢指出,最近在忙paper,我会在下次review的时候修改的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants