reduceByKey
R2026bClass: matlab.compiler.mlspark.RDD
Namespace: matlab.compiler.mlspark
(To be removed) Merge the values for each key using an associative reduce function
matlab.compiler.mlspark.RDD.reduceByKey will be removed in a future
release. There is no replacement functionality. For more information, see Version History.
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 R2016bSee Also
reduce | reduceByKeyLocally | map | collect | parallelize