top returns the specified number of "largest" elements in your RDD.
They are returned to the driver as an Array. If you want to make an
RDD out of them again, call SparkContext.parallelize(...). Make sure
this is what you mean though.

On Wed, Sep 24, 2014 at 5:33 AM, Deep Pradhan <pradhandeep1...@gmail.com> wrote:
> Hi,
> Is it always possible to get one RDD from another.
> For example, if I do a top(K)(Ordering....), I get an Int right? (In my
> example the type is Int). I do not get an RDD.
> Can anyone explain this to me?
> Thank You

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org

Reply via email to