Main Content
keyBy
Class: matlab.compiler.mlspark.RDD
Namespace: matlab.compiler.mlspark
Create tuples of the elements in an RDD by applying a function
Syntax
result =
keyBy(obj,func)
Description
takes
a function result
=
keyBy(obj
,func
)func
that returns a key for any given
element in obj
. The keyBy
method
applies this function to all the elements in obj
and
returns an output RDD result
of
key-value pairs.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2016b