Enum ExecutionMode

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BATCH
      Deprecated.
      This mode executes all shuffles and broadcasts in a batch fashion, while pipelining data between operations that exchange data only locally between one producer and one consumer.
      BATCH_FORCED
      Deprecated.
      This mode executes the program in a strict batch way, including all points where data is forwarded locally from one producer to one consumer.
      PIPELINED
      Deprecated.
      Executes the program in a pipelined fashion (including shuffles and broadcasts), except for data exchanges that are susceptible to deadlocks when pipelining.
      PIPELINED_FORCED
      Deprecated.
      Executes the program in a pipelined fashion (including shuffles and broadcasts), including data exchanges that are susceptible to deadlocks when executed via pipelining.
    • Enum Constant Detail

      • PIPELINED

        public static final ExecutionMode PIPELINED
        Deprecated.
        Executes the program in a pipelined fashion (including shuffles and broadcasts), except for data exchanges that are susceptible to deadlocks when pipelining. These data exchanges are performed in a batch manner.

        An example of situations that are susceptible to deadlocks (when executed in a pipelined manner) are data flows that branch (one data set consumed by multiple operations) and re-join later:

        
         DataSet data = ...;
         DataSet mapped1 = data.map(new MyMapper());
         DataSet mapped2 = data.map(new AnotherMapper());
         mapped1.join(mapped2).where(...).equalTo(...);
         
      • PIPELINED_FORCED

        public static final ExecutionMode PIPELINED_FORCED
        Deprecated.
        Executes the program in a pipelined fashion (including shuffles and broadcasts), including data exchanges that are susceptible to deadlocks when executed via pipelining.

        Usually, PIPELINED is the preferable option, which pipelines most data exchanges and only uses batch data exchanges in situations that are susceptible to deadlocks.

        This option should only be used with care and only in situations where the programmer is sure that the program is safe for full pipelining and that Flink was too conservative when choosing the batch exchange at a certain point.

      • BATCH

        public static final ExecutionMode BATCH
        Deprecated.
        This mode executes all shuffles and broadcasts in a batch fashion, while pipelining data between operations that exchange data only locally between one producer and one consumer.
      • BATCH_FORCED

        public static final ExecutionMode BATCH_FORCED
        Deprecated.
        This mode executes the program in a strict batch way, including all points where data is forwarded locally from one producer to one consumer. This mode is typically more expensive to execute than the BATCH mode. It does guarantee that no successive operations are ever executed concurrently.
    • Method Detail

      • values

        public static ExecutionMode[] values()
        Deprecated.
        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 (ExecutionMode c : ExecutionMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ExecutionMode valueOf​(String name)
        Deprecated.
        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