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

@Internal public enum ElementOrder extends Enum<ElementOrder>
This enum defines the element order of being processed. Only the elements with the same key should be considered here. We should keep this internal and away from API module for now, until we could see the concrete need for FIRST_STATE_ORDER from average users.
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The processElement call will be invoked on record arrival, but may be blocked at the first state accessing if there is a preceding same-key record under processing.
    Treat the record processing as a whole, meaning that any processElement call for the elements with same key should follow the order of record arrival AND no parallel run is allowed.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    static ElementOrder[]
    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

    • RECORD_ORDER

      public static final ElementOrder RECORD_ORDER
      Treat the record processing as a whole, meaning that any processElement call for the elements with same key should follow the order of record arrival AND no parallel run is allowed.
    • FIRST_STATE_ORDER

      public static final ElementOrder FIRST_STATE_ORDER
      The processElement call will be invoked on record arrival, but may be blocked at the first state accessing if there is a preceding same-key record under processing.
  • Method Details

    • values

      public static ElementOrder[] 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 ElementOrder 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