sortByKey
R2026bClass: matlab.compiler.mlspark.RDD
Namespace: matlab.compiler.mlspark
(To be removed) Sort RDD consisting of key-value pairs by key
matlab.compiler.mlspark.RDD.sortByKey will be removed in a future
release. There is no replacement functionality. For more information, see Version History.
Syntax
result =
sortByKey(obj,numPartitions)
Description
sorts
a key-value result =
sortByKey(obj,numPartitions)obj by key. numPartitions specifies
the number of partitions to create in the resulting RDD.