Main Content

toDebugString

R2026b

Class: matlab.compiler.mlspark.RDD
Namespace: matlab.compiler.mlspark

(To be removed) Obtain a description of an RDD and its recursive dependencies for debugging

matlab.compiler.mlspark.RDD.toDebugString will be removed in a future release. There is no replacement functionality. For more information, see Version History.

Syntax

str = toDebugString(obj)

Description

str = toDebugString(obj) gets a description of input RDD and its recursive dependencies for debugging purposes.

Input Arguments

expand all

An input RDD, specified as an RDD object.

Output Arguments

expand all

Description of an RDD and its recursive dependencies for debugging purposes, returned as a character vector.

Data Types: char

Examples

expand all

Use the toDebugString method to get a description of an RDD and its recursive dependencies.

%% Connect to Spark
sparkProp = containers.Map({'spark.executor.cores'}, {'1'});
conf = matlab.compiler.mlspark.SparkConf('AppName','myApp', ...
                        'Master','local[1]','SparkProperties',sparkProp);
sc = matlab.compiler.mlspark.SparkContext(conf);

%% toDebugString
myFile = sc.textFile('airlinesmall.csv');
myFile.persist();
myFile.toDebugString()

Version History

Introduced in R2016b

collapse all