K - The type of key the state is associated to.IN - The type of the values that are added into the state.ACC - TThe type of the accumulator (intermediate aggregation state).OUT - The type of the values that are returned from the state.public class InternalAggregatingState<K,IN,ACC,OUT> extends InternalKeyedState<K,ACC> implements org.apache.flink.api.common.state.v2.AggregatingState<IN,OUT>
AggregatingState, which delegates all async requests to
StateRequestHandler.| 限定符和类型 | 字段和说明 |
|---|---|
protected org.apache.flink.api.common.functions.AggregateFunction<IN,ACC,OUT> |
aggregateFunction |
| 构造器和说明 |
|---|
InternalAggregatingState(StateRequestHandler stateRequestHandler,
AggregatingStateDescriptor<IN,ACC,OUT> stateDescriptor)
Creates a new InternalKeyedState with the given asyncExecutionController and stateDescriptor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.flink.api.common.state.v2.StateFuture<Void> |
asyncAdd(IN value) |
org.apache.flink.api.common.state.v2.StateFuture<OUT> |
asyncGet() |
asyncClear, getStateDescriptor, getValueSerializer, handleRequestpublic InternalAggregatingState(StateRequestHandler stateRequestHandler, AggregatingStateDescriptor<IN,ACC,OUT> stateDescriptor)
stateRequestHandler - The async request handler for handling all requests.stateDescriptor - The properties of the state.public org.apache.flink.api.common.state.v2.StateFuture<OUT> asyncGet()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.