Re: Looping over a DataSet and accesing another DataSet

2016-11-03 Thread otherwise777
I just found out that I am able to use arrays in tuple values, nvm about that question -- View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Looping-over-a-DataSet-and-accesing-another-DataSet-tp9778p9850.html Sent from the Apache Flink User Mailin

Re: Looping over a DataSet and accesing another DataSet

2016-11-02 Thread otherwise777
I did mean the iteratino yes, I currently solved the problem by rewriting the algorithm in gelly's GathersumApply model, thnx for the tips I had another question regarding the original message, about appending items to a list, how would I do that? Because afaik it's not possible to add a list or a

Re: Looping over a DataSet and accesing another DataSet

2016-11-01 Thread Greg Hogan
By 'loop' do you refer to an iteration? The output of a bulk iteration is processed as the input of the following iteration. Values updated in an iteration are available in the next iteration just as values updated by an operator are available to the following operator. Your chosen algorithm may n

Re: Looping over a DataSet and accesing another DataSet

2016-10-31 Thread otherwise777
Thank you for your reply, this is new information for me, Regarding the algorithm, i gave it a better look and i don't think it will work with joining. When looping over the Edge set (u,v) we need to be able to write and read A[u] and A[v]. If i join them it will create a new instances of that val

Re: Looping over a DataSet and accesing another DataSet

2016-10-31 Thread Greg Hogan
The DataSet API only supports binary joins but one can simulate an n-ary join by chaining successive join operations. Your algorithm requires a global ordering on edges, requiring a parallelism of 1, and will not scale in a distributed processing system. Flink excels at processing bulk (larger tha

Re: Looping over a DataSet and accesing another DataSet

2016-10-31 Thread otherwise777
Thank you for your reply and explanation, I think there is one issue with your method though, you said that i should make a join with the the key value pair A on v and the Edge set (u,v), this would work, however i not only need to access A[v] in one iteration but also A[u], so if i join on v that

Re: Looping over a DataSet and accesing another DataSet

2016-10-30 Thread Gábor Gévay
Hello, In Flink, one often used way to access data from multiple DataSets at the same time is to perform a join (Flink actually calls equi-joins [1] just "join"), just as in the database world. For example, in the algorithm that you linked, you access A[u] for every edge (u,v). I assume that you