-
-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SparkContext.runJob and RDD.withScope
- Loading branch information
1 parent
58ae78d
commit 21d8785
Showing
5 changed files
with
107 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# RDDOperationScope | ||
|
||
## withScope { #withScope } | ||
|
||
```scala | ||
withScope[T]( | ||
sc: SparkContext, | ||
name: String, | ||
allowNesting: Boolean, | ||
ignoreParent: Boolean)( | ||
body: => T): T | ||
withScope[T]( | ||
sc: SparkContext, | ||
allowNesting: Boolean = false)( | ||
body: => T): T | ||
``` | ||
|
||
??? note "name Argument" | ||
Value | Caller | ||
------|------- | ||
`checkpoint` | [RDD.doCheckpoint](RDD.md#doCheckpoint) | ||
_Some_ method name | Executed without `name` | ||
The name of a physical operator (with no `Exec` suffix) | `SparkPlan.executeQuery` ([Spark SQL]({{ book.spark_sql }}/physical-operators/SparkPlan/#executeQuery)) | ||
|
||
`withScope`...FIXME | ||
|
||
--- | ||
|
||
`withScope` is used when: | ||
|
||
* `RDD` is requested to [doCheckpoint](RDD.md#doCheckpoint) and [withScope](RDD.md#withScope) (for most, if not all, `RDD` API operators) | ||
* `SparkContext` is requested to [withScope](../SparkContext.md#withScope) (for most, if not all, `SparkContext` API operators) | ||
* `SparkPlan` ([Spark SQL]({{ book.spark_sql }}/physical-operators/SparkPlan/#executeQuery)) is requested to `executeQuery` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters