Re: Tumbling window rich functionality

2016-10-12 Thread Robert Metzger
Hi, apply() will be called for each key. On Wed, Oct 12, 2016 at 2:25 PM, Swapnil Chougule wrote: > Thanks Aljoscha. > > Whenever I am using WindowFunction.apply() on keyed stream, apply() will > be called once or multiple times (equal to number of keys in that windowed

Re: Tumbling window rich functionality

2016-10-12 Thread Swapnil Chougule
Thanks Aljoscha. Whenever I am using WindowFunction.apply() on keyed stream, apply() will be called once or multiple times (equal to number of keys in that windowed stream)? Ex: DataStream dataStream = env .socketTextStream("localhost", ) .flatMap(new

Re: Tumbling window rich functionality

2016-09-14 Thread Aljoscha Krettek
Hi, WindowFunction.apply() will be called once for each window so you should be able to do the setup/teardown in there. open() and close() are called at the start of processing, end of processing, respectively. Cheers, Aljoscha On Wed, 14 Sep 2016 at 09:04 Swapnil Chougule