spark.rdd.GlommedRDD.scala Maven / Gradle / Ivy
The newest version!
package spark.rdd
import spark.{RDD, Partition, TaskContext}
private[spark] class GlommedRDD[T: ClassManifest](prev: RDD[T])
extends RDD[Array[T]](prev) {
override def getPartitions: Array[Partition] = firstParent[T].partitions
override def compute(split: Partition, context: TaskContext) =
Array(firstParent[T].iterator(split, context).toArray).iterator
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy