spark-instrumented-optimizer/core/src/main/scala/spark/Split.scala
2012-06-29 18:47:12 -07:00

15 lines
255 B
Scala

package spark
/**
* A partition of an RDD.
*/
trait Split extends Serializable {
/**
* Get the split's index within its parent RDD
*/
def index: Int
// A better default implementation of HashCode
override def hashCode(): Int = index
}