Class BeamKeyedStateStore
java.lang.Object
org.apache.flink.streaming.api.runners.python.beam.state.BeamKeyedStateStore
- All Implemented Interfaces:
BeamStateStore
A
BeamStateStore that returns keyed states based on BeamFnApi.StateRequest.-
Field Summary
Fields inherited from interface org.apache.flink.streaming.api.runners.python.beam.state.BeamStateStore
PYTHON_STATE_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionBeamKeyedStateStore(org.apache.flink.runtime.state.KeyedStateBackend<?> keyedStateBackend, org.apache.flink.api.common.typeutils.TypeSerializer<?> keySerializer, org.apache.flink.api.common.typeutils.TypeSerializer<?> namespaceSerializer) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.api.common.state.ListState<byte[]>getListState(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request) ParseBeamFnApi.StateRequestand return the correspondingListState.org.apache.flink.api.common.state.MapState<ByteArrayWrapper,byte[]> getMapState(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request) ParseBeamFnApi.StateRequestand return the correspondingMapState.
-
Constructor Details
-
BeamKeyedStateStore
public BeamKeyedStateStore(org.apache.flink.runtime.state.KeyedStateBackend<?> keyedStateBackend, org.apache.flink.api.common.typeutils.TypeSerializer<?> keySerializer, @Nullable org.apache.flink.api.common.typeutils.TypeSerializer<?> namespaceSerializer)
-
-
Method Details
-
getListState
public org.apache.flink.api.common.state.ListState<byte[]> getListState(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request) throws Exception Description copied from interface:BeamStateStoreParseBeamFnApi.StateRequestand return the correspondingListState.- Specified by:
getListStatein interfaceBeamStateStore- Throws:
Exception
-
getMapState
public org.apache.flink.api.common.state.MapState<ByteArrayWrapper,byte[]> getMapState(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request) throws Exception Description copied from interface:BeamStateStoreParseBeamFnApi.StateRequestand return the correspondingMapState.- Specified by:
getMapStatein interfaceBeamStateStore- Throws:
Exception
-