@Internal public final class PerWindowStateDataViewStore extends Object implements StateDataViewStore
StateDataViewStore for window aggregates which forwards the state
registration to an underlying KeyedStateBackend. The created state by this store has the
ability to switch window namespaces.| 构造器和说明 |
|---|
PerWindowStateDataViewStore(org.apache.flink.runtime.state.KeyedStateBackend<?> keyedStateBackend,
org.apache.flink.api.common.typeutils.TypeSerializer<?> windowSerializer,
org.apache.flink.api.common.functions.RuntimeContext runtimeContext) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.flink.api.common.functions.RuntimeContext |
getRuntimeContext() |
<N,EE> StateListView<N,EE> |
getStateListView(String stateName,
org.apache.flink.api.common.typeutils.TypeSerializer<EE> elementSerializer)
Creates a state list view.
|
<N,EK,EV> StateMapView<N,EK,EV> |
getStateMapView(String stateName,
boolean supportNullKey,
org.apache.flink.api.common.typeutils.TypeSerializer<EK> keySerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<EV> valueSerializer)
Creates a state map view.
|
public PerWindowStateDataViewStore(org.apache.flink.runtime.state.KeyedStateBackend<?> keyedStateBackend,
org.apache.flink.api.common.typeutils.TypeSerializer<?> windowSerializer,
org.apache.flink.api.common.functions.RuntimeContext runtimeContext)
public <N,EK,EV> StateMapView<N,EK,EV> getStateMapView(String stateName, boolean supportNullKey, org.apache.flink.api.common.typeutils.TypeSerializer<EK> keySerializer, org.apache.flink.api.common.typeutils.TypeSerializer<EV> valueSerializer) throws Exception
StateDataViewStoregetStateMapView 在接口中 StateDataViewStoreN - Type of the namespaceEK - External type of the keys in the map stateEV - External type of the values in the map statestateName - The name of underlying state of the map viewsupportNullKey - Whether the null key should be supportedkeySerializer - The key serializervalueSerializer - The value serializerExceptionpublic <N,EE> StateListView<N,EE> getStateListView(String stateName, org.apache.flink.api.common.typeutils.TypeSerializer<EE> elementSerializer) throws Exception
StateDataViewStoregetStateListView 在接口中 StateDataViewStoreN - Type of the namespaceEE - External type of the elements in the list statestateName - The name of underlying state of the list viewelementSerializer - The element serializerExceptionpublic org.apache.flink.api.common.functions.RuntimeContext getRuntimeContext()
getRuntimeContext 在接口中 StateDataViewStoreCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.