回复:回复:Transfer information from one window to the next

Posted by 施晓罡(星罡) on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Transfer-information-from-one-window-to-the-next-tp11738p11762.html

Hi Sonex

All windows under the same key (e.g., TimeWindow(0, 3600) and TimeWindow(3600, 7200)) will be processed by the flatmap function. You can put the variable drawn from TimeWindow(0, 3600) into a State. When you receive TimeWindow(3600, 7200), you can access the state and apply the function with the obtained variable.

Regards,
Xiaogang

------------------------------------------------------------------
发件人:Sonex <[hidden email]>
发送时间:2017年2月20日(星期一) 19:54
收件人:user <[hidden email]>
主 题:Re: 回复:Transfer information from one window to the next

I don`t think you understood the question correctly. I do not care about
information between windows at the same time (i.e., start of window = 0, end
of window 3600). I want to pass a variable, let`s say for key 1, from the
apply function of window 0-3600 to the apply function of window 3600-7200,
for key 1.



--
View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Transfer-information-from-one-window-to-the-next-tp11738p11739.html
Sent from the Apache Flink User Mailing List archive. mailing list archive at Nabble.com.