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...@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-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org