Re: How to customize trigger for Count Time Window

2018-07-15 Thread Rong Rong
Hi Soheil, I don't think just overriding the window trigger function is sufficient, since your logic effectively changes the how elements are assigned to a window. Based on a quick scan I think your use case might be able to reuse the DynamicGapSessionWIndow [1], where you will have to create a cu

How to customize trigger for Count Time Window

2018-07-14 Thread Soheil Pourbafrani
I want to have a time window to trigger data processing in two following condition: 1 - The window has 3 messages 2- Or any number of message (less than 3) is in the window and it reaches a timeout I know someone should extend Trigger class: public static class MyWindowTrigger extends Trigger {