Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-1344

Scala API docs for top methods

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.0
    • Fix Version/s: 1.2.0
    • Component/s: Documentation
    • Labels:
      None

      Description

      The RDD.top() methods are documented as follows:

      Returns the top K elements from this RDD using the natural ordering for T.

      Returns the top K elements from this RDD as defined by the specified Comparator[[T]].

      I believe those should read

      Returns the top num elements from this RDD using the natural ordering for K.

      Returns the top num elements from this RDD as defined by the specified Comparator[[K]].

        Attachments

          Activity

            People

            • Assignee:
              srowen Sean R. Owen
              Reporter:
              dcarroll@cloudera.com Diana Carroll
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: