[ 
https://issues.apache.org/jira/browse/SPARK-5954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xiangrui Meng resolved SPARK-5954.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.4.0

Issue resolved by pull request 5075
[https://github.com/apache/spark/pull/5075]

> Add topByKey to pair RDDs
> -------------------------
>
>                 Key: SPARK-5954
>                 URL: https://issues.apache.org/jira/browse/SPARK-5954
>             Project: Spark
>          Issue Type: New Feature
>          Components: Spark Core
>            Reporter: Xiangrui Meng
>            Assignee: Shuo Xiang
>             Fix For: 1.4.0
>
>
> `topByKey(num: Int): RDD[(K, V)]` finds the top-k values for each key in a 
> pair RDD. This is used, e.g., in computing top recommendations. We can use 
> the Guava implementation of finding top-k from an iterator. See also 
> https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/util/collection/Utils.scala.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to