Class BeamOperatorStateStore
- java.lang.Object
-
- org.apache.flink.streaming.api.runners.python.beam.state.BeamOperatorStateStore
-
- All Implemented Interfaces:
BeamStateStore
public class BeamOperatorStateStore extends Object implements BeamStateStore
ABeamStateStore
that returns operator 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 BeamOperatorStateStore(OperatorStateBackend operatorStateBackend)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListState<byte[]>
getListState(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request)
Currently list state and union-list state is not supported.MapState<ByteArrayWrapper,byte[]>
getMapState(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request)
Returns aBroadcastState
wrapped inMapState
interface.
-
-
-
Constructor Detail
-
BeamOperatorStateStore
public BeamOperatorStateStore(OperatorStateBackend operatorStateBackend)
-
-
Method Detail
-
getListState
public 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:
getListState
in interfaceBeamStateStore
- Throws:
Exception
-
getMapState
public MapState<ByteArrayWrapper,byte[]> getMapState(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request) throws Exception
Returns aBroadcastState
wrapped inMapState
interface.- Specified by:
getMapState
in interfaceBeamStateStore
- Throws:
Exception
-
-