[
https://issues.apache.org/jira/browse/FLINK-17058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17079285#comment-17079285
]
Roey Shem Tov edited comment on FLINK-17058 at 4/9/20, 3:43 PM:
----------------------------------------------------------------
[~aljoscha] Thank you for answer.
I upload an example code on attachment, the main idea is to make any Trigger to
TimeoutTrigger,
e.g:
{code:java}
ProcessingTimeoutTrigger.of(CountTrigger.of(5),10000){code}
This make a CountTrigger with timeout (for example, if after 10seconds the
counter is less then 5, emit the window anyway).
was (Author: roeyshemtov):
[~aljoscha] Thank you for answer.
I upload an example code on attachment, the main idea is to make any Trigger to
TimeoutTrigger,
e.g:
{code:java}
ProcessingTimeoutTrigger.of(CountTrigger.of(5),10000){code}
This make a CountTrigger with timeout (that if counter doesn`t arrive 5 in
10,000 millis
emit the window result).
> Adding TimeoutTrigger support nested triggers
> ---------------------------------------------
>
> Key: FLINK-17058
> URL: https://issues.apache.org/jira/browse/FLINK-17058
> Project: Flink
> Issue Type: Improvement
> Components: API / DataStream
> Reporter: Roey Shem Tov
> Priority: Minor
> Attachments: ProcessingTimeoutTrigger.java
>
>
> Hello,
> first Jira ticket that im opening here so if there is any mistakes of how
> doing it, please recorrect me.
> My suggestion is to add a TimeoutTrigger that apply as nestedTrigger(as
> example how the PurgeTrigger does).
> The TimeoutTrigger will support ProcessTime/EventTime and will have 2 timeous:
> # Const timeout - when the first element of the window is arriving it is
> opening a timeout of X millis - after that the window will be evaluate.
> # Continual timeout - each record arriving will increase the timeout of the
> evaluation of the window.
>
> I found it very useful in our case when using flink, and i would like to work
> on it (if it is possible).
> what do you think?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)