Github user yangyangyyy commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17697#discussion_r112805327
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/mllib/rdd/MLPairRDDFunctions.scala ---
    @@ -49,6 +49,18 @@ class MLPairRDDFunctions[K: ClassTag, V: ClassTag](self: 
RDD[(K, V)]) extends Se
           }
         ).mapValues(_.toArray.sorted(ord.reverse))  // This is a min-heap, so 
we reverse the order.
       }
    +
    +  def topByKeyUsingBuckets(num: Int, bucketsCount: Int = 200)(implicit 
ord: Ordering[V]): RDD[(K, Array[V])] = {
    --- End diff --
    
    does this exist  in scala ? I thought scala does not allow overloading and 
default argument values are supposed to replace that. let me check ...


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to