flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kostas Kloudas <k.klou...@data-artisans.com>
Subject Re: Window Functions and Empty Panes
Date Tue, 18 Apr 2017 19:07:43 GMT
Hi Ryan,

“A periodic window like this requires the ability to start a timer without an element and
to restart a timer when fired.”

For the second part, i.e. “to restart a timer when fired”, you can re-register the timer
in the onTimer() method (set a 
new timer for “now + T"), so that the next one fires after T time units, where T is your
period.

For the first part, where you set the initial timer for a window, this needs to have a first
element right? If not, how
do you know the key for which to set the timer? Are all the keys known in advance?

Kostas



> On Apr 18, 2017, at 8:35 PM, Ryan Conway <ryanmackenzieconway@gmail.com> wrote:
> 
> A periodic window like this requires the ability to start a timer without an element
and to restart a timer when fired.


Mime
View raw message