Skip to content

Fix some typos #77

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions EnglishVersion/2-JobLogicalPlan.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ Then,
```
Foreach rdd = rdds(i):
if the dependency between CoGroupedRDD and rdd is OneToOneDependency
Dependecy[i] = new OneToOneDependency(rdd)
Dependency[i] = new OneToOneDependency(rdd)
else
Dependecy[i] = new ShuffleDependency(rdd)
Dependency[i] = new ShuffleDependency(rdd)
```

Finally, it returns `deps: Array[Dependency]`, which is an array of `Dependency` corresponding to each parent RDD.
Expand All @@ -198,7 +198,7 @@ Finally, it returns `deps: Array[Dependency]`, which is an array of `Dependency`

![intersection](../PNGfigures/intersection.png)

`intersection()` aims to extract all the common elements from `RDD a` and `RDD b`. `RDD[T]` is mapped into `RDD[(T,null)]`, where `T` cannot be any collections. Then, `a.cogroup(b)` (colored in blue) is performed. Next, `filter()` only keeps the records where neither of `[iter(groupA()), iter(groupB())]` is empty (`FilteredRDD`). Finally, only keys of the reocrds are kept in `MappedRDD`.
`intersection()` aims to extract all the common elements from `RDD a` and `RDD b`. `RDD[T]` is mapped into `RDD[(T,null)]`, where `T` cannot be any collections. Then, `a.cogroup(b)` (colored in blue) is performed. Next, `filter()` only keeps the records where neither of `[iter(groupA()), iter(groupB())]` is empty (`FilteredRDD`). Finally, only keys of the records are kept in `MappedRDD`.

6) **join(otherRDD, numPartitions)**

Expand Down