You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hayri Volkan Agun (JIRA)" <ji...@apache.org> on 2017/04/08 21:04:41 UTC

[jira] [Created] (SPARK-20268) Arbitrary RDD element (Fast return) instead of using first

Hayri Volkan Agun created SPARK-20268:
-----------------------------------------

             Summary: Arbitrary RDD element (Fast return) instead of using first
                 Key: SPARK-20268
                 URL: https://issues.apache.org/jira/browse/SPARK-20268
             Project: Spark
          Issue Type: Improvement
          Components: ML, Spark Core
    Affects Versions: 2.1.0, 2.0.1, 2.0.0
            Reporter: Hayri Volkan Agun
            Priority: Minor


Most of the ML and MLLIB algorithms somehow need the column size of the rdd vector (RDD[Vector]). So instead of getting the first element by rdd.first(), a fast return can be made to calculate the length of the vector of a arbitrary rdd element. It can also be be named any(). 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org