Main Content
aggregateByKey
Class: matlab.compiler.mlspark.RDD
Namespace: matlab.compiler.mlspark
Aggregate the values of each key, using given combine functions and a neutral “zero value”
Syntax
result =
aggregateByKey(obj,zeroValue,seqFunc,combFunc,numPartitions)
Description
aggregates
the values of each key, using given combine functions specified by result
=
aggregateByKey(obj
,zeroValue
,seqFunc
,combFunc
,numPartitions
)seqFunc
and combFunc
,
and a neutral “zero value” specified by zeroValue
.
The input argument numPartitions
is optional.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2016b
See Also
aggregate
| combineByKey
| foldByKey
| groupByKey
| reduceByKey
| sortByKey
| subtractByKey
| map
| collect
| parallelize