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.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.flink.api.common.functions.AggregateFunction<IN,ACC,OUT> |
aggregateFunction |
| Constructor and Description |
|---|
InternalAggregatingState(StateRequestHandler stateRequestHandler,
AggregatingStateDescriptor<IN,ACC,OUT> stateDescriptor)
Creates a new InternalKeyedState with the given asyncExecutionController and stateDescriptor.
|
| Modifier and Type | Method and Description |
|---|---|
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–2025 The Apache Software Foundation. All rights reserved.