Package org.apache.spark.broadcast
Interface BroadcastFactory
public interface BroadcastFactory
An interface for all the broadcast implementations in Spark (to allow
 multiple broadcast implementations). SparkContext uses a BroadcastFactory
 implementation to instantiate a particular broadcast for the entire Spark job.
- 
Method SummaryModifier and TypeMethodDescriptionvoidinitialize(boolean isDriver, SparkConf conf) <T> Broadcast<T>newBroadcast(T value, boolean isLocal, long id, boolean serializedOnly, scala.reflect.ClassTag<T> evidence$1) Creates a new broadcast variable.voidstop()voidunbroadcast(long id, boolean removeFromDriver, boolean blocking) 
- 
Method Details- 
initialize
- 
newBroadcast<T> Broadcast<T> newBroadcast(T value, boolean isLocal, long id, boolean serializedOnly, scala.reflect.ClassTag<T> evidence$1) Creates a new broadcast variable.- Parameters:
- value- value to broadcast
- isLocal- whether we are in local mode (single JVM process)
- id- unique id representing this broadcast variable
- serializedOnly- if true, do not cache the unserialized value on the driver
- evidence$1- (undocumented)
- Returns:
- Broadcastobject, a read-only variable cached on each machine
 
- 
stopvoid stop()
- 
unbroadcastvoid unbroadcast(long id, boolean removeFromDriver, boolean blocking) 
 
-