Implementing Stateful Functions source function的stateful看官网,要加lock Declaring Keyed State at the RuntimeContext state可通过 rich functions .Listcheckpoint和CheckpointFunction获得. 在Flink中,当对某个数据进行处理时,从上下文中获取state时,只会获取该数据key对应的state. 四种Keyed State: ValueSta…