Thank you very much,I think I got it.
I'm gonna learn more about the window state.

















At 2022-08-18 10:52:25, "yanfei lei" <fredia...@gmail.com> wrote:
>Hi,  there are two methods on the Context object that a process() invocation
>receives that allows access to the two types of state:
>
>   - globalState(), which allows access to keyed state that is not scoped
>   to a window
>   - windowState(), which allows access to keyed state that is also scoped
>   to the window
>
>maybe you can refer to the implementation of WindowReaderTest
><https://github.com/apache/flink/blob/master/flink-libraries/flink-state-processing-api/src/test/java/org/apache/flink/state/api/input/WindowReaderTest.java>
>.
>
>Best,
>Yanfei
>
>2022年8月18日 上午10:05,曲洋 <quyanghao...@126.com> 写道:
>
>Hi dear engineers,
>
>I have one question:  does flink streaming support getting the state.I
>override the open method in the map processor,initializing the state(some
>metric for the data) .How can I get the state in my window?
>
>Thanks for your help!

回复