Last active
April 10, 2016 14:33
-
-
Save cerisier/4ed21c359d84035765b2980bc1855522 to your computer and use it in GitHub Desktop.
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
/** | |
* An RDD that applies the provided function to every partition of the parent RDD. | |
*/ | |
private[spark] class MapPartitionsRDD[U: ClassTag, T: ClassTag]( | |
var prev: RDD[T], | |
f: (TaskContext, Int, Iterator[T]) => Iterator[U], // (TaskContext, partition index, iterator) | |
preservesPartitioning: Boolean = false) | |
extends RDD[U](prev) { | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment