The driver function for the Spark job.
The driver function for the Spark job. Unlike the corresponding function in the parent class, this function allows you to work with IOBase types directly.
Spark context created when the Spark job was submitted
a map containing system related parameters (rather than operator parameters) including all Spark parameters, workflow-level variables
the ioBase object which you have defined as the input to your plugin. For example, if the GUI node of the plugin takes an HDFSTabularDataset, this input parameter will be that dataset.
-the parameter values set in the GUI node. Their value can be accessed via the "key" defined for each parameter added to the OperatorDialog in the GUI node.
a listener object which allows you to send messages to the Alpine GUI during the Spark job
the output of your plugin
:: AlpineSdkApi ::
This is the Spark Job class. It gets submitted to the cluster by a Runtime class which is a derivative of SparkRuntime. The 'onExecution method' in this class serves as the driver function for the Spark Job.
It handles the serialization/deserialization of Inputs and Outputs. It enables you to directly work with IOBase objects without needing to implement your own (de)serialization logic. This class is intended to be coupled with SparkRuntimeWithIOTypedJob, a descendant of SparkRuntime that takes a descendant of this class as a generic parameter.
Note: It is possible to use this class with a runtime class that extends the generic SparkRuntime class (rather than the SparkRuntimeWithIOTypedJob class). However, by using SparkRuntimeWithIOTypedJob and overriding the onExecution method, you can get many of the benefits of the class while implementing more complex behavior. In taking the later approach you can use the SparkRuntimeWithIOTypedJob implementation of the 'onExecution' method as a utility function for submitting the Spark job by calling super.onExecution.
input type of your plugin must be consistent with the SparkRuntime implementation's type parameters.
output type of your plugin