K - The type of key the state is associated to.V - The type of values kept internally in state.@Internal public abstract class InternalKeyedState<K,V> extends Object implements org.apache.flink.api.common.state.v2.State
InternalKeyedState is the root of the internal state type hierarchy, similar to the
State being the root of the public API state hierarchy.
The public API state hierarchy is intended to be programmed against by Flink applications. The
internal state hierarchy holds all the auxiliary methods that communicates with AsyncExecutionController and not intended to be used by user applications.
| 构造器和说明 |
|---|
InternalKeyedState(StateRequestHandler stateRequestHandler,
StateDescriptor<V> stateDescriptor)
Creates a new InternalKeyedState with the given asyncExecutionController and stateDescriptor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.flink.api.common.state.v2.StateFuture<Void> |
asyncClear() |
StateDescriptor<V> |
getStateDescriptor()
Return specific
StateDescriptor. |
org.apache.flink.api.common.typeutils.TypeSerializer<V> |
getValueSerializer()
Return related value serializer.
|
protected <IN,OUT> org.apache.flink.api.common.state.v2.StateFuture<OUT> |
handleRequest(StateRequestType stateRequestType,
IN payload)
Submit a state request to AEC.
|
public InternalKeyedState(StateRequestHandler stateRequestHandler, StateDescriptor<V> stateDescriptor)
protected final <IN,OUT> org.apache.flink.api.common.state.v2.StateFuture<OUT> handleRequest(StateRequestType stateRequestType, IN payload)
stateRequestType - the type of this request.payload - the payload input for this request.public final org.apache.flink.api.common.state.v2.StateFuture<Void> asyncClear()
asyncClear 在接口中 org.apache.flink.api.common.state.v2.Statepublic StateDescriptor<V> getStateDescriptor()
StateDescriptor.public org.apache.flink.api.common.typeutils.TypeSerializer<V> getValueSerializer()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.