Interface BeamStateStore
-
- All Known Implementing Classes:
BeamKeyedStateStore,BeamOperatorStateStore
public interface BeamStateStoreInterface for getting the underlying state based on Beam state request (keyed state or operator state).
-
-
Field Summary
Fields Modifier and Type Field Description static StringPYTHON_STATE_PREFIX
-
Method Summary
All Methods Static Methods Instance Methods Abstract 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.static BeamStateStoreunsupported()
-
-
-
Field Detail
-
PYTHON_STATE_PREFIX
static final String PYTHON_STATE_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getListState
org.apache.flink.api.common.state.ListState<byte[]> getListState(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request) throws ExceptionParseBeamFnApi.StateRequestand return the correspondingListState.- Throws:
Exception
-
getMapState
org.apache.flink.api.common.state.MapState<ByteArrayWrapper,byte[]> getMapState(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request) throws Exception
ParseBeamFnApi.StateRequestand return the correspondingMapState.- Throws:
Exception
-
unsupported
static BeamStateStore unsupported()
-
-