Enum 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 Detail

      • 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 Detail

      • values

        public static ElementOrder[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ElementOrder c : ElementOrder.values())
            System.out.println(c);
        
        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