@Internal public interface StateDataViewStore
StateDataView
with a managed store.Modifier and Type | Method and Description |
---|---|
RuntimeContext |
getRuntimeContext() |
<N,EE> StateListView<N,EE> |
getStateListView(String stateName,
TypeSerializer<EE> elementSerializer)
Creates a state list view.
|
<N,EK,EV> StateMapView<N,EK,EV> |
getStateMapView(String stateName,
boolean supportNullKey,
TypeSerializer<EK> keySerializer,
TypeSerializer<EV> valueSerializer)
Creates a state map view.
|
<N,EK,EV> StateMapView<N,EK,EV> getStateMapView(String stateName, boolean supportNullKey, TypeSerializer<EK> keySerializer, TypeSerializer<EV> valueSerializer) throws Exception
N
- Type of the namespaceEK
- External type of the keys in the map stateEV
- External type of the values in the map statestateName
- The name of underlying state of the map viewsupportNullKey
- Whether the null key should be supportedkeySerializer
- The key serializervalueSerializer
- The value serializerException
<N,EE> StateListView<N,EE> getStateListView(String stateName, TypeSerializer<EE> elementSerializer) throws Exception
N
- Type of the namespaceEE
- External type of the elements in the list statestateName
- The name of underlying state of the list viewelementSerializer
- The element serializerException
RuntimeContext getRuntimeContext()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.