spark-instrumented-optimizer/core/src/main/scala/spark/ShuffleFetcher.scala
2012-10-13 14:59:20 -07:00

13 lines
324 B
Scala

package spark
private[spark] abstract class ShuffleFetcher {
/**
* Fetch the shuffle outputs for a given ShuffleDependency.
* @return An iterator over the elements of the fetched shuffle outputs.
*/
def fetch[K, V](shuffleId: Int, reduceId: Int) : Iterator[(K, V)]
/** Stop the fetcher */
def stop() {}
}