Main Content
map
Class: matlab.compiler.mlspark.RDD
Namespace: matlab.compiler.mlspark
Return a new RDD by applying a function to each element of an input RDD
Syntax
result =
map(obj,func,varargin)
Description
returns
a new RDD result
=
map(obj
,func
,varargin
)result
by first
applying a function func
to all elements of obj
. varargin
represents
a variable-length input argument list for the inputs to the function
being applied.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2016b
See Also
flatMap
| reduce
| collect
| parallelize