1、flink自己管理的算子状态类型有以下几种,
BroadcastState,ListState,UnionListState
package org.apache.flink.api.common.state;
import java.util.Set;
import org.apache.flink.annotation.PublicEvolving;
@PublicEvolving
public interface OperatorStateStore {
<K, V> BroadcastState<K, V> getBroadcastState(MapStateDescriptor<K, V> var1) throws Exception;
<S> ListState<S> getListState(ListStateDescriptor<S> var1) throws Exception;
<S> ListState<S> getUnionListState(ListStateDescriptor<S> var1) throws Exception;
Set<String> getRegisteredStateNames();
Set<String> getRegisteredBroadcastStateNames();
}
2、上述的状态就设计flink的状态恢复问题,具体恢复可以参照以下文章