public class BeamOperatorStateStore extends Object implements BeamStateStore
BeamStateStore
that returns operator states based on BeamFnApi.StateRequest
.PYTHON_STATE_PREFIX
Constructor and Description |
---|
BeamOperatorStateStore(OperatorStateBackend operatorStateBackend) |
Modifier and Type | Method and 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 a
BroadcastState wrapped in MapState interface. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
unsupported
public BeamOperatorStateStore(OperatorStateBackend operatorStateBackend)
public ListState<byte[]> getListState(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request) throws Exception
getListState
in interface BeamStateStore
Exception
public MapState<ByteArrayWrapper,byte[]> getMapState(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request) throws Exception
BroadcastState
wrapped in MapState
interface.getMapState
in interface BeamStateStore
Exception
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.