TorrentBroadcastFactory¶
TorrentBroadcastFactory is a BroadcastFactory of TorrentBroadcasts.
Note
As of Spark 2.0 TorrentBroadcastFactory is the only known BroadcastFactory.
Creating Instance¶
TorrentBroadcastFactory takes no arguments to be created.
TorrentBroadcastFactory is created for BroadcastManager.
Creating Broadcast Variable¶
BroadcastFactory
newBroadcast[T: ClassTag](
  value_ : T,
  isLocal: Boolean,
  id: Long,
  serializedOnly: Boolean = false): Broadcast[T]
newBroadcast is part of the BroadcastFactory abstraction.
newBroadcast creates a new TorrentBroadcast with the given value_ and id (and ignoring isLocal).
Deleting Broadcast Variable¶
BroadcastFactory
unbroadcast(
  id: Long,
  removeFromDriver: Boolean,
  blocking: Boolean): Unit
unbroadcast is part of the BroadcastFactory abstraction.
unbroadcast removes all persisted state associated with the broadcast variable (identified by id).
Initializing¶
BroadcastFactory
initialize(
  isDriver: Boolean,
  conf: SparkConf): Unit
initialize is part of the BroadcastFactory abstraction.
initialize does nothing (noop).
Stopping¶
stop does nothing (noop).