aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/scala/spark/ShuffleFetcher.scala
blob: d9a94d4021ee325d57aac710f4b0858883f3e63b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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() {}
}