Class AbstractValueState<K,N,V>

java.lang.Object
org.apache.flink.runtime.state.v2.AbstractKeyedState<K,N,V>
org.apache.flink.runtime.state.v2.AbstractValueState<K,N,V>
Type Parameters:
K - The type of key the state is associated to.
V - The type of values kept internally in state.
All Implemented Interfaces:
org.apache.flink.api.common.state.v2.State, org.apache.flink.api.common.state.v2.ValueState<V>, InternalKeyedState<K,N,V>, InternalPartitionedState<N>, InternalValueState<K,N,V>

public class AbstractValueState<K,N,V> extends AbstractKeyedState<K,N,V> implements InternalValueState<K,N,V>
A default implementation of ValueState which delegates all async requests to AsyncExecutionController.
  • Constructor Details

    • AbstractValueState

      public AbstractValueState(StateRequestHandler stateRequestHandler, org.apache.flink.api.common.state.v2.ValueStateDescriptor<V> valueStateDescriptor)
  • Method Details

    • asyncValue

      public final org.apache.flink.api.common.state.v2.StateFuture<V> asyncValue()
      Specified by:
      asyncValue in interface org.apache.flink.api.common.state.v2.ValueState<K>
    • asyncUpdate

      public final org.apache.flink.api.common.state.v2.StateFuture<Void> asyncUpdate(V value)
      Specified by:
      asyncUpdate in interface org.apache.flink.api.common.state.v2.ValueState<K>
    • value

      public V value()
      Specified by:
      value in interface org.apache.flink.api.common.state.v2.ValueState<K>
    • update

      public void update(V value)
      Specified by:
      update in interface org.apache.flink.api.common.state.v2.ValueState<K>