spark-instrumented-optimizer/core/src/main/scala/spark/Scheduler.scala

17 lines
413 B
Scala
Raw Normal View History

2010-03-29 19:17:55 -04:00
package spark
// Scheduler trait, implemented by both NexusScheduler and LocalScheduler.
private trait Scheduler {
def start()
2010-03-29 19:17:55 -04:00
def waitForRegister()
// Run a function on some partitions of an RDD, returning an array of results.
def runJob[T, U](rdd: RDD[T], func: Iterator[T] => U, partitions: Seq[Int])
(implicit m: ClassManifest[U]): Array[U]
2010-03-29 19:17:55 -04:00
def stop()
def numCores(): Int
2010-03-29 19:17:55 -04:00
}