blob: 90d4b47c553c535ff3271da0ddceb66a7ed832f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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
}
|