SparkContext.Broadcast<T>(T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Broadcast a read-only variable to the cluster, returning a Microsoft.Spark.Broadcast object for reading it in distributed functions. The variable will be sent to each executor only once.
public Microsoft.Spark.Broadcast<T> Broadcast<T>(T value);
member this.Broadcast : 'T -> Microsoft.Spark.Broadcast<'T>
Public Function Broadcast(Of T) (value As T) As Broadcast(Of T)
Type Parameters
- T
Type of the variable being broadcast
Parameters
- value
- T
Value of the broadcast variable
Returns
A Broadcast object of type Broadcast<T>(T)