Re: Question about windowing

2017-08-28 Thread Aljoscha Krettek
Yes, this is a very good explanation, Tony! I'd like to add that "Evictor" is not really a good name for what it does. It should be more like "Keeper" or "Retainer" because what a "CountEvictor.of(1000)" really does is to evict everything but the last 1000 elements, so it should be called

Re: Question about windowing

2017-08-23 Thread 魏偉哲
Hi Jerry, You can learn about Flink's windowing mechanics in this blog ( https://flink.apache.org/news/2015/12/04/Introducing-windows.html). To my understanging, window() defines how Flink use WindowAssigner to insert an element to the right windows, trigger() defines when to fire a window and

Question about windowing

2017-08-22 Thread Jerry Peng
Hello, I have a question regarding windowing and triggering. I am trying to connect the dots between the simple windowing api e.g. stream.countWindow(1000, 100) to the underlying representation using triggers and evictors api: stream.window(GlobalWindows.create())