matlab.compiler.mlspark.SparkContext Class
R2026bNamespace: matlab.compiler.mlspark
Superclasses:
(To be removed) Interface class to initialize a connection to a Spark enabled cluster
matlab.compiler.mlspark.SparkContext will be removed in a future
release. There is no replacement functionality. For more information, see Version History.
Description
A SparkContext object serves as an entry
point to Spark™ by initializing a connection to a Spark cluster.
It accepts a SparkConf object as an input argument
and uses the parameters specified in that object to set up the internal
services necessary to establish a connection to the Spark execution
environment.
Construction
creates
a sc = matlab.compiler.mlspark.SparkContext(conf)SparkContext object initializes a connection
to a Spark cluster.
Input Arguments
Properties
The properties of this class are hidden.
Methods
| addJar | (To be removed) Add JAR file dependency for all tasks that need to be
executed in a SparkContext |
| broadcast | (To be removed) Broadcast a read-only variable to the cluster |
| datastoreToRDD | (To be removed) Convert MATLAB datastore to a Spark RDD |
| delete | (To be removed) Shutdown connection to Spark enabled cluster |
| getSparkConf | (To be removed) Get SparkConf configuration parameters |
| parallelize | (To be removed) Create an RDD from a collection of local MATLAB values |
| setCheckpointDir | (To be removed) Set the directory under which RDDs are to be checkpointed |
| setLogLevel | (To be removed) Set log level |
| textFile | (To be removed) Create an RDD from a text file |
Examples
More About
References
See the latest Spark documentation for more information.