spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Akhil Das <ak...@sigmoidanalytics.com>
Subject Re: Getting the value from DStream[Int]
Date Thu, 16 Oct 2014 10:16:57 GMT
you can do score.print to see the values, and if you want to do some
operations with these values then you have to do a map on that dstream
(score.map(myInt => myInt + 5))

Thanks
Best Regards

On Thu, Oct 16, 2014 at 5:19 AM, SK <skrishna.id@gmail.com> wrote:

> Hi,
>
> As a result of a reduction operation, the resultant value "score" is a
> DStream[Int] . How can I get the simple Int value?
> I tried score[0], and score._1, but neither worked and can't  find a
> getValue() in the DStream API.
>
> thanks
>
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/Getting-the-value-from-DStream-Int-tp16525.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
> For additional commands, e-mail: user-help@spark.apache.org
>
>

Mime
View raw message