Class BeamKeyedStateStore
- java.lang.Object
-
- org.apache.flink.streaming.api.runners.python.beam.state.BeamKeyedStateStore
-
- All Implemented Interfaces:
BeamStateStore
public class BeamKeyedStateStore extends Object implements BeamStateStore
ABeamStateStorethat returns keyed states based onBeamFnApi.StateRequest.
-
-
Field Summary
-
Fields inherited from interface org.apache.flink.streaming.api.runners.python.beam.state.BeamStateStore
PYTHON_STATE_PREFIX
-
-
Constructor Summary
Constructors Constructor Description BeamKeyedStateStore(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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 Detail
-
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 Detail
-
getListState
public org.apache.flink.api.common.state.ListState<byte[]> getListState(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request) throws ExceptionDescription 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
-
-