flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sendoh <unicorn.bana...@gmail.com>
Subject onEventTime() is not called after setting ctx.registerEventTimeTimer(timstamp)
Date Wed, 07 Dec 2016 17:37:33 GMT
Hi Flink users,

Can I ask is my understanding of onEventTime() correct?

In my custom trigger, I have sth as follows:

onElement(JSONObject element, long timestamp, W window, TriggerContext ctx){
    if(count == 3) {
       return TriggerResult.Continue;

onEventTime(long time, W window, TriggerContext ctx){
      return TriggerResult.FIRE_AND_PURGE;

and I expect onEventTime(long time, W window, TriggerContext ctx) will be
called when watermark has passed 100000 millis.

but nothing happens,,,did I misunderstand sth? 


Hung Chang

View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/onEventTime-is-not-called-after-setting-ctx-registerEventTimeTimer-timstamp-tp10509.html
Sent from the Apache Flink User Mailing List archive. mailing list archive at Nabble.com.

View raw message