How can I invoke a method like
select udf(a,b) from Event.win:length_batch(5)
and print the window of size 5 out again. Say i send the following events:
runtime.sendEvent(new Event(1,2));
runtime.sendEvent(new Event(3,4));
runtime.sendEvent(new Event(4,2));
runtime.sendEvent(new Event(6,8));
runtime.sendEvent(new Event(4,6));
and print them out in the same order after batching them. This means that the method invoked udf(a,b) shall only be executed once per batch. I have used the updatelistener, but I have to invoke it as a method event though i can get the desired result using the listener.
Thanks.