Class MapStateAdaptor<K,N,UK,UV>

java.lang.Object
org.apache.flink.runtime.state.v2.adaptor.StateAdaptor<K,N,InternalMapState<K,N,UK,UV>>
org.apache.flink.runtime.state.v2.adaptor.MapStateAdaptor<K,N,UK,UV>
All Implemented Interfaces:
org.apache.flink.api.common.state.v2.MapState<UK,UV>, org.apache.flink.api.common.state.v2.State, InternalKeyedState<K,N,UV>, InternalMapState<K,N,UK,UV>, InternalPartitionedState<N>

public class MapStateAdaptor<K,N,UK,UV> extends StateAdaptor<K,N,InternalMapState<K,N,UK,UV>> implements InternalMapState<K,N,UK,UV>
An adaptor that transforms InternalMapState into InternalMapState.
  • Constructor Details

  • Method Details

    • asyncGet

      public org.apache.flink.api.common.state.v2.StateFuture<UV> asyncGet(UK key)
      Specified by:
      asyncGet in interface org.apache.flink.api.common.state.v2.MapState<K,N>
    • get

      public UV get(UK key)
      Specified by:
      get in interface org.apache.flink.api.common.state.v2.MapState<K,N>
    • asyncPut

      public org.apache.flink.api.common.state.v2.StateFuture<Void> asyncPut(UK key, UV value)
      Specified by:
      asyncPut in interface org.apache.flink.api.common.state.v2.MapState<K,N>
    • put

      public void put(UK key, UV value)
      Specified by:
      put in interface org.apache.flink.api.common.state.v2.MapState<K,N>
    • asyncPutAll

      public org.apache.flink.api.common.state.v2.StateFuture<Void> asyncPutAll(Map<UK,UV> map)
      Specified by:
      asyncPutAll in interface org.apache.flink.api.common.state.v2.MapState<K,N>
    • putAll

      public void putAll(Map<UK,UV> map)
      Specified by:
      putAll in interface org.apache.flink.api.common.state.v2.MapState<K,N>
    • asyncRemove

      public org.apache.flink.api.common.state.v2.StateFuture<Void> asyncRemove(UK key)
      Specified by:
      asyncRemove in interface org.apache.flink.api.common.state.v2.MapState<K,N>
    • remove

      public void remove(UK key)
      Specified by:
      remove in interface org.apache.flink.api.common.state.v2.MapState<K,N>
    • asyncContains

      public org.apache.flink.api.common.state.v2.StateFuture<Boolean> asyncContains(UK key)
      Specified by:
      asyncContains in interface org.apache.flink.api.common.state.v2.MapState<K,N>
    • contains

      public boolean contains(UK key)
      Specified by:
      contains in interface org.apache.flink.api.common.state.v2.MapState<K,N>
    • asyncEntries

      public org.apache.flink.api.common.state.v2.StateFuture<org.apache.flink.api.common.state.v2.StateIterator<Map.Entry<UK,UV>>> asyncEntries()
      Specified by:
      asyncEntries in interface org.apache.flink.api.common.state.v2.MapState<K,N>
    • entries

      public Iterable<Map.Entry<UK,UV>> entries()
      Specified by:
      entries in interface org.apache.flink.api.common.state.v2.MapState<K,N>
    • asyncKeys

      public org.apache.flink.api.common.state.v2.StateFuture<org.apache.flink.api.common.state.v2.StateIterator<UK>> asyncKeys()
      Specified by:
      asyncKeys in interface org.apache.flink.api.common.state.v2.MapState<K,N>
    • keys

      public Iterable<UK> keys()
      Specified by:
      keys in interface org.apache.flink.api.common.state.v2.MapState<K,N>
    • asyncValues

      public org.apache.flink.api.common.state.v2.StateFuture<org.apache.flink.api.common.state.v2.StateIterator<UV>> asyncValues()
      Specified by:
      asyncValues in interface org.apache.flink.api.common.state.v2.MapState<K,N>
    • values

      public Iterable<UV> values()
      Specified by:
      values in interface org.apache.flink.api.common.state.v2.MapState<K,N>
    • asyncIsEmpty

      public org.apache.flink.api.common.state.v2.StateFuture<Boolean> asyncIsEmpty()
      Specified by:
      asyncIsEmpty in interface org.apache.flink.api.common.state.v2.MapState<K,N>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.apache.flink.api.common.state.v2.MapState<K,N>
    • iterator

      public Iterator<Map.Entry<UK,UV>> iterator()
      Specified by:
      iterator in interface org.apache.flink.api.common.state.v2.MapState<K,N>