Enum ShipStrategyType

java.lang.Object
java.lang.Enum<ShipStrategyType>
org.apache.flink.runtime.operators.shipping.ShipStrategyType
All Implemented Interfaces:
Serializable, Comparable<ShipStrategyType>

public enum ShipStrategyType extends Enum<ShipStrategyType>
Enumeration defining the different shipping types of the output, such as local forward, re-partitioning by hash, or re-partitioning by range.
  • Enum Constant Details

    • NONE

      public static final ShipStrategyType NONE
      Constant used as an indicator for an unassigned ship strategy.
    • FORWARD

      public static final ShipStrategyType FORWARD
      Forwarding the data locally in memory.
    • PARTITION_RANDOM

      public static final ShipStrategyType PARTITION_RANDOM
      Repartitioning the data randomly, typically when the parallelism between two nodes changes.
    • PARTITION_HASH

      public static final ShipStrategyType PARTITION_HASH
      Repartitioning the data deterministically through a hash function.
    • PARTITION_RANGE

      public static final ShipStrategyType PARTITION_RANGE
      Partitioning the data in ranges according to a total order.
    • PARTITION_FORCED_REBALANCE

      public static final ShipStrategyType PARTITION_FORCED_REBALANCE
      Partitioning the data evenly, forced at a specific location (cannot be pushed down by optimizer).
    • BROADCAST

      public static final ShipStrategyType BROADCAST
      Replicating the data set to all instances.
    • PARTITION_CUSTOM

      public static final ShipStrategyType PARTITION_CUSTOM
      Partitioning using a custom partitioner.
  • Method Details

    • values

      public static ShipStrategyType[] 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 ShipStrategyType 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
    • isNetworkStrategy

      public boolean isNetworkStrategy()
    • requiresComparator

      public boolean requiresComparator()