Main Content
reduceByKey
Class: matlab.compiler.mlspark.RDD
Namespace: matlab.compiler.mlspark
Merge the values for each key using an associative reduce function
Syntax
result = reduceByKey(obj,func,numPartitions)
Description
result = reduceByKey(
merges
the values for each key in obj
,func
,numPartitions
)obj
using an associative
reduce function func
. numPartitions
specifies
the number of partitions to create in the resulting RDD.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2016b
See Also
reduce
| reduceByKeyLocally
| map
| collect
| parallelize