@Internal public final class PerKeyStateDataViewStore extends Object implements StateDataViewStore
StateDataViewStore
that currently forwards state registration
to a RuntimeContext
.Constructor and Description |
---|
PerKeyStateDataViewStore(RuntimeContext ctx) |
PerKeyStateDataViewStore(RuntimeContext ctx,
StateTtlConfig stateTtlConfig) |
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.
|
public PerKeyStateDataViewStore(RuntimeContext ctx)
public PerKeyStateDataViewStore(RuntimeContext ctx, StateTtlConfig stateTtlConfig)
public <N,EK,EV> StateMapView<N,EK,EV> getStateMapView(String stateName, boolean supportNullKey, TypeSerializer<EK> keySerializer, TypeSerializer<EV> valueSerializer)
StateDataViewStore
getStateMapView
in interface StateDataViewStore
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 serializerpublic <N,EE> StateListView<N,EE> getStateListView(String stateName, TypeSerializer<EE> elementSerializer)
StateDataViewStore
getStateListView
in interface StateDataViewStore
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 serializerpublic RuntimeContext getRuntimeContext()
getRuntimeContext
in interface StateDataViewStore
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.