|NO.Z.00037|——————————|BigDataEnd|——|Hadoop&Flink.V04|——|Flink.v04|Flink State|状态原理|原理剖析|状态描述|

一、状态描述:状态描述流程
### --- 状态描述说明

~~~     State 既然是暴露给用户的,那么就需要有一些属性需要指定:
~~~     state 名称、val serializer、state type info。
~~~     在对应的statebackend中,会去调用对应的create方法获取到stateDescriptor中的值。
~~~     Flink通过StateDescriptor 来定义一个状态。
~~~     这是一个抽象类,内部定义了状态名称、类型、序列化器等基础信息。
~~~     与上面的状态对应,从StateDescriptor 派生了ValueStateDescriptor ,ListStateDescriptor 等descriptor
ValueState getState(ValueStateDescriptor)
ReducingState getReducingState(ReducingStateDescriptor)
ListState getListState(ListStateDescriptor)
FoldingState getFoldingState(FoldingStateDescriptor)
MapState getMapState(MapStateDescriptor)

 
 
 
 
 
 
 
 
 

Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
                                                                                                                                                   ——W.S.Landor

 

posted on 2022-04-13 15:10  yanqi_vip  阅读(12)  评论(0)    收藏  举报

导航