Enum StateRequestType

java.lang.Object
java.lang.Enum<StateRequestType>
org.apache.flink.runtime.asyncprocessing.StateRequestType
All Implemented Interfaces:
Serializable, Comparable<StateRequestType>

public enum StateRequestType extends Enum<StateRequestType>
The type of processing request for State from **users' perspective**. Each interface of State and its sub-interfaces will have a corresponding enum entry.

TODO: Serialization and Deserialization.

  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Add element to aggregating state by AppendingState.asyncAdd(Object).
    Get value from aggregating state by AppendingState.asyncGet().
    Clear the current partition of the state, State.asyncClear().
    Defined by different state backends.
    Continuously load elements for one iterator.
    Add value to list state, AppendingState.asyncAdd(Object).
    Add multiple value to list of current partition, ListState.asyncAddAll(List).
    Get from list state, AppendingState.asyncGet().
    Put a list to current partition, ListState.asyncUpdate(List).
    Check key existence of current partition, MapState.asyncContains(Object)}.
    Get a value by a key from current partition, MapState.asyncGet(Object).
    Check the existence of any key-value mapping within current partition, MapState.asyncIsEmpty().
    Get an iterator of key-value mapping within current partition, MapState.asyncEntries().
    Get an iterator of keys within current partition, MapState.asyncKeys().
    Get an iterator of values within current partition, MapState.asyncValues().
    Update a key-value pair of current partition, MapState.asyncPut(Object, Object).
    Update multiple key-value pairs of current partition, MapState.asyncPutAll(Map).
    Remove a key-value mapping within current partition, MapState.asyncRemove(Object).
    Add element into reducing state, AppendingState.asyncAdd(Object).
    Get from reducing state, AppendingState.asyncGet().
    A sync point with AEC, does nothing with state, checking if the key is occupied by others and blocking if needed.
    Get value from current partition, ValueState.asyncValue().
    Update value to current partition, ValueState.asyncUpdate(Object).
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • SYNC_POINT

      public static final StateRequestType SYNC_POINT
      A sync point with AEC, does nothing with state, checking if the key is occupied by others and blocking if needed. This is a special one that only created by the runtime framework without visibility to users.
    • CLEAR

      public static final StateRequestType CLEAR
      Clear the current partition of the state, State.asyncClear().
    • VALUE_GET

      public static final StateRequestType VALUE_GET
      Get value from current partition, ValueState.asyncValue().
    • VALUE_UPDATE

      public static final StateRequestType VALUE_UPDATE
      Update value to current partition, ValueState.asyncUpdate(Object).
    • LIST_GET

      public static final StateRequestType LIST_GET
      Get from list state, AppendingState.asyncGet().
    • LIST_ADD

      public static final StateRequestType LIST_ADD
      Add value to list state, AppendingState.asyncAdd(Object).
    • LIST_UPDATE

      public static final StateRequestType LIST_UPDATE
      Put a list to current partition, ListState.asyncUpdate(List).
    • LIST_ADD_ALL

      public static final StateRequestType LIST_ADD_ALL
      Add multiple value to list of current partition, ListState.asyncAddAll(List).
    • MAP_GET

      public static final StateRequestType MAP_GET
      Get a value by a key from current partition, MapState.asyncGet(Object).
    • MAP_CONTAINS

      public static final StateRequestType MAP_CONTAINS
      Check key existence of current partition, MapState.asyncContains(Object)}.
    • MAP_PUT

      public static final StateRequestType MAP_PUT
      Update a key-value pair of current partition, MapState.asyncPut(Object, Object).
    • MAP_PUT_ALL

      public static final StateRequestType MAP_PUT_ALL
      Update multiple key-value pairs of current partition, MapState.asyncPutAll(Map).
    • MAP_ITER

      public static final StateRequestType MAP_ITER
      Get an iterator of key-value mapping within current partition, MapState.asyncEntries().
    • MAP_ITER_KEY

      public static final StateRequestType MAP_ITER_KEY
      Get an iterator of keys within current partition, MapState.asyncKeys().
    • MAP_ITER_VALUE

      public static final StateRequestType MAP_ITER_VALUE
      Get an iterator of values within current partition, MapState.asyncValues().
    • MAP_REMOVE

      public static final StateRequestType MAP_REMOVE
      Remove a key-value mapping within current partition, MapState.asyncRemove(Object).
    • MAP_IS_EMPTY

      public static final StateRequestType MAP_IS_EMPTY
      Check the existence of any key-value mapping within current partition, MapState.asyncIsEmpty().
    • ITERATOR_LOADING

      public static final StateRequestType ITERATOR_LOADING
      Continuously load elements for one iterator.
    • REDUCING_GET

      public static final StateRequestType REDUCING_GET
      Get from reducing state, AppendingState.asyncGet().
    • REDUCING_ADD

      public static final StateRequestType REDUCING_ADD
      Add element into reducing state, AppendingState.asyncAdd(Object).
    • AGGREGATING_GET

      public static final StateRequestType AGGREGATING_GET
      Get value from aggregating state by AppendingState.asyncGet().
    • AGGREGATING_ADD

      public static final StateRequestType AGGREGATING_ADD
      Add element to aggregating state by AppendingState.asyncAdd(Object).
    • CUSTOMIZED

      public static final StateRequestType CUSTOMIZED
      Defined by different state backends.
  • Method Details

    • values

      public static StateRequestType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static StateRequestType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null