K - The type of key the state is associated to.V - The type of values kept internally in state.public class InternalReducingState<K,V> extends InternalKeyedState<K,V> implements org.apache.flink.api.common.state.v2.ReducingState<V>
ReducingState which delegates all async requests to StateRequestHandler.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.flink.api.common.functions.ReduceFunction<V> |
reduceFunction |
| Constructor and Description |
|---|
InternalReducingState(StateRequestHandler stateRequestHandler,
ReducingStateDescriptor<V> stateDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.state.v2.StateFuture<Void> |
asyncAdd(V value) |
org.apache.flink.api.common.state.v2.StateFuture<V> |
asyncGet() |
asyncClear, getStateDescriptor, getValueSerializer, handleRequestprotected final org.apache.flink.api.common.functions.ReduceFunction<V> reduceFunction
public InternalReducingState(StateRequestHandler stateRequestHandler, ReducingStateDescriptor<V> stateDescriptor)
public org.apache.flink.api.common.state.v2.StateFuture<V> asyncGet()
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.