public class HttpBroadcast<T> extends Broadcast<T> implements Logging, scala.Serializable
Broadcast
implementation that uses HTTP server
as a broadcast mechanism. The first time a HTTP broadcast variable (sent as part of a
task) is deserialized in the executor, the broadcasted data is fetched from the driver
(through a HTTP server running at the driver) and stored in the BlockManager of the
executor to speed up future accesses.Constructor and Description |
---|
HttpBroadcast(T value_,
boolean isLocal,
long id,
scala.reflect.ClassTag<T> evidence$1) |
Modifier and Type | Method and Description |
---|---|
static java.io.File |
getFile(long id) |
static void |
initialize(boolean isDriver,
SparkConf conf,
SecurityManager securityMgr) |
static void |
stop() |
static void |
unpersist(long id,
boolean removeFromDriver,
boolean blocking)
Remove all persisted blocks associated with this HTTP broadcast on the executors.
|
T |
value_() |
destroy, destroy, id, isValid, toString, unpersist, unpersist, value
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public static void initialize(boolean isDriver, SparkConf conf, SecurityManager securityMgr)
public static void stop()
public static java.io.File getFile(long id)
public static void unpersist(long id, boolean removeFromDriver, boolean blocking)
public T value_()