Share via


SparkContext.Broadcast<T>(T) Method

Definition

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)

Applies to