@Internal public final class PerKeyStateDataViewStore extends Object implements StateDataViewStore
StateDataViewStore that currently forwards state registration
to a RuntimeContext.| Constructor and Description |
|---|
PerKeyStateDataViewStore(org.apache.flink.api.common.functions.RuntimeContext ctx) |
PerKeyStateDataViewStore(org.apache.flink.api.common.functions.RuntimeContext ctx,
org.apache.flink.api.common.state.StateTtlConfig stateTtlConfig) |
| 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 PerKeyStateDataViewStore(org.apache.flink.api.common.functions.RuntimeContext ctx)
public PerKeyStateDataViewStore(org.apache.flink.api.common.functions.RuntimeContext ctx,
org.apache.flink.api.common.state.StateTtlConfig stateTtlConfig)
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)
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 serializerpublic <N,EE> StateListView<N,EE> getStateListView(String stateName, org.apache.flink.api.common.typeutils.TypeSerializer<EE> elementSerializer)
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 serializerpublic org.apache.flink.api.common.functions.RuntimeContext getRuntimeContext()
getRuntimeContext in interface StateDataViewStoreCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.