Hi, You can use map functions like flatmapValues and mapValues, which will apply the map fucntion on each pairRDD contained in your input pairDstream<K,V> and returns the paired Dstream<K,V>
On Fri, Jun 13, 2014 at 8:48 AM, ryan_seq [via Apache Spark User List] < ml-node+s1001560n7550...@n3.nabble.com> wrote: > Hi, > Is there any function avialable in spark streaming to transform a > <K,V> pair to a new <K,V> pair. > Looking for a function that takes both the key and value as input to > return a new tuple > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://apache-spark-user-list.1001560.n3.nabble.com/Transform-K-V-pair-to-a-new-K-V-pair-tp7550.html > To start a new topic under Apache Spark User List, email > ml-node+s1001560n...@n3.nabble.com > To unsubscribe from Apache Spark User List, click here > <http://apache-spark-user-list.1001560.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1&code=bGFsaXRAc2lnbW9pZGFuYWx5dGljcy5jb218MXwtMTIwMzUwMjA2MQ==> > . > NAML > <http://apache-spark-user-list.1001560.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- -- Thanks & Regards, Lalit Yadav +91-9901007692 ----- Lalit Yadav la...@sigmoidanalytics.com -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Transform-K-V-pair-to-a-new-K-V-pair-tp7550p7573.html Sent from the Apache Spark User List mailing list archive at Nabble.com.