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
ABeamStateStorethat 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(org.apache.flink.runtime.state.OperatorStateBackend operatorStateBackend)
-
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)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.
-
-
-
Method Detail
-
getListState
public org.apache.flink.api.common.state.ListState<byte[]> getListState(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request) throws ExceptionCurrently 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
-
-