Class BeamOperatorStateStore
java.lang.Object
org.apache.flink.streaming.api.runners.python.beam.state.BeamOperatorStateStore
- All Implemented Interfaces:
BeamStateStore
A
BeamStateStore that returns operator 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
ConstructorsConstructorDescriptionBeamOperatorStateStore(org.apache.flink.runtime.state.OperatorStateBackend operatorStateBackend) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.api.common.state.ListState<byte[]>getListState(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request) Currently list state and union-list state is not supported.org.apache.flink.api.common.state.MapState<ByteArrayWrapper,byte[]> getMapState(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request) Returns aBroadcastStatewrapped inMapStateinterface.
-
Constructor Details
-
BeamOperatorStateStore
public BeamOperatorStateStore(org.apache.flink.runtime.state.OperatorStateBackend operatorStateBackend)
-
-
Method Details
-
getListState
public org.apache.flink.api.common.state.ListState<byte[]> getListState(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request) throws Exception Currently list state and union-list state is not supported.- 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 Returns aBroadcastStatewrapped inMapStateinterface.- Specified by:
getMapStatein interfaceBeamStateStore- Throws:
Exception
-