@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.| Constructor and Description |
|---|
PerWindowStateDataViewStore(org.apache.flink.runtime.state.KeyedStateBackend<?> keyedStateBackend,
org.apache.flink.api.common.typeutils.TypeSerializer<?> windowSerializer,
org.apache.flink.api.common.functions.RuntimeContext runtimeContext) |
| Modifier and Type | Method and Description |
|---|---|
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 in interface 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 in interface 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 in interface StateDataViewStoreCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.