spark-instrumented-optimizer/core/src/main/scala/spark/Split.scala
2011-02-27 19:15:52 -08:00

15 lines
248 B
Scala

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