Main Content
sortByKey
Class: matlab.compiler.mlspark.RDD
Namespace: matlab.compiler.mlspark
Sort RDD consisting of key-value pairs by key
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.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2016b