com.stratio.deep.partitioner.DeepPartitioner.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spark-mongodb Show documentation
Show all versions of spark-mongodb Show documentation
A Spark SQl library for MongoDB
package com.stratio.deep.partitioner
import org.apache.spark.Partition
/**
* Provides the way to compute and get spark partitions over
* some Data Source.
* @tparam T
*/
trait DeepPartitioner[T <: Partition] extends Serializable {
/**
* Retrieves some Data Source partitions
* @return An array with computed partitions
*/
def computePartitions(): Array[T]
}