All Downloads are FREE. Search and download functionalities are using the official Maven repository.

spark.Partition.scala Maven / Gradle / Ivy

The newest version!
package spark

/**
 * A partition of an RDD.
 */
trait Partition 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
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy