public class PerWindowStateDataViewStore extends Object implements StateDataViewStore
KeyedStateBackend. The created state by this store has the
ability to switch window namespace.| 构造器和说明 |
|---|
PerWindowStateDataViewStore(org.apache.flink.runtime.state.KeyedStateBackend<?> keyedStateBackend,
org.apache.flink.api.common.typeutils.TypeSerializer<?> windowSerializer,
org.apache.flink.api.common.functions.RuntimeContext runtimeContext) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.flink.api.common.functions.RuntimeContext |
getRuntimeContext()
Gets the context that contains information about the UDF's runtime, such as the parallelism
of the function, the subtask index of the function, or the name of the of the task that
executes the function.
|
<N,V> StateListView<N,V> |
getStateListView(String stateName,
org.apache.flink.table.dataview.ListViewTypeInfo<V> listViewTypeInfo)
Creates a state list view.
|
<N,UK,UV> StateMapView<N,UK,UV> |
getStateMapView(String stateName,
org.apache.flink.table.dataview.MapViewTypeInfo<UK,UV> mapViewTypeInfo)
Creates a state map view.
|
public PerWindowStateDataViewStore(org.apache.flink.runtime.state.KeyedStateBackend<?> keyedStateBackend,
org.apache.flink.api.common.typeutils.TypeSerializer<?> windowSerializer,
org.apache.flink.api.common.functions.RuntimeContext runtimeContext)
public <N,UK,UV> StateMapView<N,UK,UV> getStateMapView(String stateName, org.apache.flink.table.dataview.MapViewTypeInfo<UK,UV> mapViewTypeInfo) throws Exception
StateDataViewStoregetStateMapView 在接口中 StateDataViewStoreN - Type of the namespaceUK - Type of the keys in the map stateUV - Type of the values in the map statestateName - The name of underlying state of the map viewmapViewTypeInfo - The type of the map viewExceptionpublic <N,V> StateListView<N,V> getStateListView(String stateName, org.apache.flink.table.dataview.ListViewTypeInfo<V> listViewTypeInfo) throws Exception
StateDataViewStoregetStateListView 在接口中 StateDataViewStoreN - Type of the namespaceV - Type of the elements in the list statestateName - The name of underlying state of the list viewlistViewTypeInfo - The type of the list viewExceptionpublic org.apache.flink.api.common.functions.RuntimeContext getRuntimeContext()
StateDataViewStoregetRuntimeContext 在接口中 StateDataViewStoreCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.