Constructor
new Broadcast()
- Source:
Example
var b = sparkContext.broadcast([1,2]);
var bc = b.value(); // bc = [1,2]
Methods
destroy()
Destroy all data and metadata related to this broadcast variable. Use this with caution;
once a broadcast variable has been destroyed, it cannot be used again.
This method blocks until destroy has completed
- Source:
toString() → {string}
- Source:
Returns:
- Type
- string
unpersist(blockingopt)
Delete cached copies of this broadcast on the executors. If the broadcast is used after
this is called, it will need to be re-sent to each executor.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
blocking |
boolean |
<optional> |
Whether to block until unpersisting has completed |
- Source:
value() → {object}
Get the broadcasted value.
- Source:
Returns:
- Type
- object