public class DynamicDriverContext extends Object implements Externalizable
PluginFunctionContext, which is used in Spark executor closures. The reason we need this on top of
the PluginFunctionContext is because JavaSparkExecutionContext can only be used in Spark driver
closures and not in spark executor closurers, and we need JavaSparkExecutionContext to make sure
runtime arguments and logical start time are fetched correctly.| Constructor and Description |
|---|
DynamicDriverContext() |
DynamicDriverContext(StageSpec stageSpec,
JavaSparkExecutionContext sec,
StageStatisticsCollector collector) |
| Modifier and Type | Method and Description |
|---|---|
PluginFunctionContext |
getPluginFunctionContext() |
JavaSparkExecutionContext |
getSparkExecutionContext() |
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
public DynamicDriverContext()
public DynamicDriverContext(StageSpec stageSpec, JavaSparkExecutionContext sec, StageStatisticsCollector collector)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic JavaSparkExecutionContext getSparkExecutionContext()
public PluginFunctionContext getPluginFunctionContext()
Copyright © 2018 Cask Data, Inc. Licensed under the Apache License, Version 2.0.