Class StateMapView.KeyedStateMapViewWithKeysNullable<N,EK,EV>

java.lang.Object
org.apache.flink.table.api.dataview.MapView<EK,EV>
org.apache.flink.table.runtime.dataview.StateMapView<N,EK,EV>
org.apache.flink.table.runtime.dataview.StateMapView.KeyedStateMapViewWithKeysNullable<N,EK,EV>
All Implemented Interfaces:
org.apache.flink.table.api.dataview.DataView, StateDataView<N>
Enclosing class:
StateMapView<N,EK,EV>

public static final class StateMapView.KeyedStateMapViewWithKeysNullable<N,EK,EV> extends StateMapView<N,EK,EV>
A state MapView which supports nullable keys but does not support namespace.
  • Constructor Details

    • KeyedStateMapViewWithKeysNullable

      public KeyedStateMapViewWithKeysNullable(org.apache.flink.api.common.state.MapState<EK,EV> mapState, org.apache.flink.api.common.state.ValueState<EV> nullState)
  • Method Details

    • setCurrentNamespace

      public void setCurrentNamespace(N namespace)
      Description copied from interface: StateDataView
      Sets current namespace for state.
    • getMapState

      protected org.apache.flink.api.common.state.MapState<EK,EV> getMapState()
    • getNullState

      protected org.apache.flink.api.common.state.ValueState<EV> getNullState()
    • get

      public EV get(EK key) throws Exception
      Overrides:
      get in class org.apache.flink.table.api.dataview.MapView<EK,EV>
      Throws:
      Exception
    • put

      public void put(EK key, EV value) throws Exception
      Overrides:
      put in class org.apache.flink.table.api.dataview.MapView<EK,EV>
      Throws:
      Exception
    • putAll

      public void putAll(Map<EK,EV> map) throws Exception
      Overrides:
      putAll in class org.apache.flink.table.api.dataview.MapView<EK,EV>
      Throws:
      Exception
    • remove

      public void remove(EK key) throws Exception
      Overrides:
      remove in class org.apache.flink.table.api.dataview.MapView<EK,EV>
      Throws:
      Exception
    • contains

      public boolean contains(EK key) throws Exception
      Overrides:
      contains in class org.apache.flink.table.api.dataview.MapView<EK,EV>
      Throws:
      Exception
    • entries

      public Iterable<Map.Entry<EK,EV>> entries() throws Exception
      Overrides:
      entries in class org.apache.flink.table.api.dataview.MapView<EK,EV>
      Throws:
      Exception
    • keys

      public Iterable<EK> keys() throws Exception
      Overrides:
      keys in class org.apache.flink.table.api.dataview.MapView<EK,EV>
      Throws:
      Exception
    • values

      public Iterable<EV> values() throws Exception
      Overrides:
      values in class org.apache.flink.table.api.dataview.MapView<EK,EV>
      Throws:
      Exception
    • iterator

      public Iterator<Map.Entry<EK,EV>> iterator() throws Exception
      Overrides:
      iterator in class org.apache.flink.table.api.dataview.MapView<EK,EV>
      Throws:
      Exception
    • isEmpty

      public boolean isEmpty() throws Exception
      Overrides:
      isEmpty in class org.apache.flink.table.api.dataview.MapView<EK,EV>
      Throws:
      Exception
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.flink.table.api.dataview.DataView
      Overrides:
      clear in class org.apache.flink.table.api.dataview.MapView<EK,EV>