spark-instrumented-optimizer/core/src/main/scala/spark/ShuffleFetcher.scala
2011-07-09 17:25:56 -04:00

11 lines
285 B
Scala

package spark
abstract class ShuffleFetcher {
// Fetch the shuffle outputs for a given ShuffleDependency, calling func exactly
// once on each key-value pair obtained.
def fetch[K, V](shuffleId: Int, reduceId: Int, func: (K, V) => Unit)
// Stop the fetcher
def stop() {}
}