2011-05-20 03:19:53 -04:00
|
|
|
package spark
|
|
|
|
|
2013-04-24 17:52:49 -04:00
|
|
|
import spark.executor.TaskMetrics
|
|
|
|
import spark.serializer.Serializer
|
|
|
|
|
2013-02-05 13:14:00 -05:00
|
|
|
|
2012-10-02 22:00:19 -04:00
|
|
|
private[spark] abstract class ShuffleFetcher {
|
2012-10-08 20:29:33 -04:00
|
|
|
/**
|
|
|
|
* Fetch the shuffle outputs for a given ShuffleDependency.
|
|
|
|
* @return An iterator over the elements of the fetched shuffle outputs.
|
|
|
|
*/
|
2013-04-24 17:52:49 -04:00
|
|
|
def fetch[K, V](shuffleId: Int, reduceId: Int, metrics: TaskMetrics,
|
|
|
|
serializer: Serializer = Serializer.default): Iterator[(K,V)]
|
2011-05-20 03:19:53 -04:00
|
|
|
|
2012-10-08 20:29:33 -04:00
|
|
|
/** Stop the fetcher */
|
2011-07-09 17:25:56 -04:00
|
|
|
def stop() {}
|
2011-05-20 03:19:53 -04:00
|
|
|
}
|