@Experimental
public interface StateManager
| 限定符和类型 | 方法和说明 |
|---|---|
<K> K |
getCurrentKey()
Get the key of current record.
|
<IN,ACC,OUT> |
getState(org.apache.flink.api.common.state.AggregatingStateDeclaration<IN,ACC,OUT> stateDeclaration)
Get the specific aggregating state.
|
<K,V> Optional<org.apache.flink.api.common.state.BroadcastState<K,V>> |
getState(org.apache.flink.api.common.state.BroadcastStateDeclaration<K,V> stateDeclaration)
Get the specific broadcast state.
|
<T> Optional<org.apache.flink.api.common.state.ListState<T>> |
getState(org.apache.flink.api.common.state.ListStateDeclaration<T> stateDeclaration)
Get the specific list state.
|
<K,V> Optional<org.apache.flink.api.common.state.MapState<K,V>> |
getState(org.apache.flink.api.common.state.MapStateDeclaration<K,V> stateDeclaration)
Get the specific map state.
|
<T> Optional<org.apache.flink.api.common.state.ReducingState<T>> |
getState(org.apache.flink.api.common.state.ReducingStateDeclaration<T> stateDeclaration)
Get the specific reducing state.
|
<T> Optional<org.apache.flink.api.common.state.ValueState<T>> |
getState(org.apache.flink.api.common.state.ValueStateDeclaration<T> stateDeclaration)
Get the specific value state.
|
<K> K getCurrentKey()
throws UnsupportedOperationException
UnsupportedOperationException - if the key can not be extracted for this function, for
instance, get the key from a non-keyed partition stream.<T> Optional<org.apache.flink.api.common.state.ListState<T>> getState(org.apache.flink.api.common.state.ListStateDeclaration<T> stateDeclaration) throws Exception
stateDeclaration - of this state.Exception<T> Optional<org.apache.flink.api.common.state.ValueState<T>> getState(org.apache.flink.api.common.state.ValueStateDeclaration<T> stateDeclaration) throws Exception
stateDeclaration - of this state.Exception<K,V> Optional<org.apache.flink.api.common.state.MapState<K,V>> getState(org.apache.flink.api.common.state.MapStateDeclaration<K,V> stateDeclaration) throws Exception
stateDeclaration - of this state.Exception<T> Optional<org.apache.flink.api.common.state.ReducingState<T>> getState(org.apache.flink.api.common.state.ReducingStateDeclaration<T> stateDeclaration) throws Exception
stateDeclaration - of this state.Exception<IN,ACC,OUT> Optional<org.apache.flink.api.common.state.AggregatingState<IN,OUT>> getState(org.apache.flink.api.common.state.AggregatingStateDeclaration<IN,ACC,OUT> stateDeclaration) throws Exception
stateDeclaration - of this state.Exception<K,V> Optional<org.apache.flink.api.common.state.BroadcastState<K,V>> getState(org.apache.flink.api.common.state.BroadcastStateDeclaration<K,V> stateDeclaration) throws Exception
stateDeclaration - of this state.ExceptionCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.