Main Content
flatMap
Class: matlab.compiler.mlspark.RDD
Namespace: matlab.compiler.mlspark
Return a new RDD by first applying a function to all elements of an existing RDD, and then flattening the results
Syntax
result =
flatMap(obj,func,varargin)
Description
returns
a new RDD result
=
flatMap(obj
,func
,varargin
)result
by first
applying a function func
to all elements of obj
,
and then flattening the results.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2016b
See Also
flatMapValues
| map
| filter
| collect
| parallelize