doDestroy( blocking: Boolean): Unit
Destroys all the data and metadata related to this broadcast variable
Broadcastis requested to destroy
doUnpersist( blocking: Boolean): Unit
Deletes the cached copies of this broadcast value on executors
Broadcastis requested to unpersist
Gets the broadcast value
Broadcastis requested for the value
Broadcast takes the following to be created:
- Unique Identifier
Broadcast is an abstract class and cannot be created directly. It is created indirectly for the concrete Broadcasts.
Broadcast is a
Serializable (Java) so it can be serialized (converted to bytes) and send over the wire from the driver to executors.
destroy(): Unit // (1) destroy( blocking: Boolean): Unit
- Non-blocking destroy (
destroy removes persisted data and metadata associated with this broadcast variable.
Once a broadcast variable has been destroyed, it cannot be used again.
unpersist(): Unit // (1) unpersist( blocking: Boolean): Unit
- Non-blocking unpersist (
toString uses the id as follows:
Broadcast is considered valid until destroyed.
Attempted to use [toString] after it was destroyed ([destroySite])