Re: Not able to update collections

2015-02-24 Thread Shixiong Zhu
st[VertexId]() >> >> > graph.edges.groupBy[VertexId](f).foreach { >> >> > edgesBySrc => { >> >> > lst ++= func(edgesBySrc) >> >> > } >> >> > } >> >> > >> >> > println(lst.length) >

Re: Not able to update collections

2015-02-24 Thread Vijayasarathy Kannan
; > > >> > println(lst.length) > >> > > >> > Here, the final println() always says that the length of the list is > 0. > >> > The > >> > list is non-empty (correctly prints the length of the returned list > >&

Re: Not able to update collections

2015-02-24 Thread Sean Owen
the final println() always says that the length of the list is 0. >> > The >> > list is non-empty (correctly prints the length of the returned list >> > inside >> > func()). >> > >> > I am not sure if I am doing the append correctly. Can someon

Re: Not able to update collections

2015-02-24 Thread Vijayasarathy Kannan
; what > > I am doing wrong? > > > > > > > > > > > > -- > > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/Not-able-to-update-collections-tp21790.html > > Sent from the Apache Spark User List mailing list ar

Re: Not able to update collections

2015-02-24 Thread Sean Owen
out what > I am doing wrong? > > > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/Not-able-to-update-collections-tp21790.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. > > ---

Not able to update collections

2015-02-24 Thread kvvt
The list is non-empty (correctly prints the length of the returned list inside func()). I am not sure if I am doing the append correctly. Can someone point out what I am doing wrong? -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Not-able-to-update-collecti