Re: get start and end time stamp from time window

2016-05-12 Thread Martin Neumann
Thanks for the help. I use a Fold and a WindowFunction in conjunction now and it works fine. Though I wish there would be a less complicated way to do this. cheers Martin On Thu, May 12, 2016 at 11:59 AM, Fabian Hueske wrote: > Hi Martin, > > You can use a FoldFunction and a WindowFunction to p

Re: get start and end time stamp from time window

2016-05-12 Thread Fabian Hueske
Hi Martin, You can use a FoldFunction and a WindowFunction to process the same! window. The FoldFunction is eagerly applied, so the window state is only one element. When the window is closed, the aggregated element is given to the WindowFunction where you can add start and end time. The iterator

get start and end time stamp from time window

2016-05-11 Thread Martin Neumann
Hej, I have a windowed stream and I want to run a (generic) fold function on it. The result should have the start and the end time stamp of the window as fields (so I can relate it to the original data). *Is there a simple way to get the timestamps from within the fold function?* I could find the