Main Content

values

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

Return an RDD with the values of each tuple

Syntax

result = values(obj)

Description

result = values(obj) returns an RDD result with the values of each tuple in obj.

Input Arguments

expand all

An input RDD, specified as a RDD object.

Output Arguments

expand all

A pipelined RDD containing values of each tuple, returned as a RDD object.

Examples

expand all

%% 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);

%% values
m = sc.parallelize({ {'AA', {5,15} }, {'BB', 200}});
out = m.values().collect(); % { {5,15}, 200 }

Version History

Introduced in R2016b

See Also

|