Skip to content

BroadcastFactory

BroadcastFactory is an abstraction of broadcast variable factories that BroadcastManager uses to create or delete broadcast variables.

Contract

Initializing

initialize(
  isDriver: Boolean,
  conf: SparkConf): Unit

Used when:

Creating Broadcast Variable

newBroadcast(
  value: T,
  isLocal: Boolean,
  id: Long): Broadcast[T]

Used when:

Stopping

stop(): Unit

Used when:

  • BroadcastManager is requested to stop

Deleting Broadcast Variable

unbroadcast(
  id: Long,
  removeFromDriver: Boolean,
  blocking: Boolean): Unit

Used when:

Implementations

Back to top