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

spark.broadcast.BroadcastFactory.scala Maven / Gradle / Ivy

The newest version!
package spark.broadcast

/**
 * An interface for all the broadcast implementations in Spark (to allow 
 * multiple broadcast implementations). SparkContext uses a user-specified
 * BroadcastFactory implementation to instantiate a particular broadcast for the
 * entire Spark job.
 */
private[spark] trait BroadcastFactory {
  def initialize(isDriver: Boolean): Unit
  def newBroadcast[T](value: T, isLocal: Boolean, id: Long): Broadcast[T]
  def stop(): Unit
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy