Main Content
reduceByKeyLocally
Class: matlab.compiler.mlspark.RDD
Namespace: matlab.compiler.mlspark
Merge the values for each key using an associative reduce function, but return the results immediately to the driver
Syntax
result =
reduceByKeyLocally(obj,func)
Description
merges
the values for each key using an associative reduce function result
=
reduceByKeyLocally(obj
,func
)func
,
and returns the results immediately to the driver.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2016b
See Also
reduce
| reduceByKey
| map
| collect
| parallelize