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