public class BeamKeyedStateStore extends Object implements BeamStateStore
BeamStateStore
that returns keyed states based on BeamFnApi.StateRequest
.PYTHON_STATE_PREFIX
Constructor and Description |
---|
BeamKeyedStateStore(KeyedStateBackend<?> keyedStateBackend,
TypeSerializer<?> keySerializer,
TypeSerializer<?> namespaceSerializer) |
Modifier and Type | Method and Description |
---|---|
ListState<byte[]> |
getListState(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request)
Parse
BeamFnApi.StateRequest and return the corresponding ListState . |
MapState<ByteArrayWrapper,byte[]> |
getMapState(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request)
Parse
BeamFnApi.StateRequest and return the corresponding MapState . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
unsupported
public BeamKeyedStateStore(KeyedStateBackend<?> keyedStateBackend, TypeSerializer<?> keySerializer, @Nullable TypeSerializer<?> namespaceSerializer)
public ListState<byte[]> getListState(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request) throws Exception
BeamStateStore
BeamFnApi.StateRequest
and return the corresponding ListState
.getListState
in interface BeamStateStore
Exception
public MapState<ByteArrayWrapper,byte[]> getMapState(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request) throws Exception
BeamStateStore
BeamFnApi.StateRequest
and return the corresponding MapState
.getMapState
in interface BeamStateStore
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.