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 Summary
Enum Constants Enum Constant Description BROADCASTReplicating the data set to all instances.FORWARDForwarding the data locally in memory.NONEConstant used as an indicator for an unassigned ship strategy.PARTITION_CUSTOMPartitioning using a custom partitioner.PARTITION_FORCED_REBALANCEPartitioning the data evenly, forced at a specific location (cannot be pushed down by optimizer).PARTITION_HASHRepartitioning the data deterministically through a hash function.PARTITION_RANDOMRepartitioning the data randomly, typically when the parallelism between two nodes changes.PARTITION_RANGEPartitioning the data in ranges according to a total order.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisNetworkStrategy()booleanrequiresComparator()static ShipStrategyTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ShipStrategyType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static ShipStrategyType[] 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 (ShipStrategyType c : ShipStrategyType.values()) System.out.println(c);
- 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 nameNullPointerException- if the argument is null
-
isNetworkStrategy
public boolean isNetworkStrategy()
-
requiresComparator
public boolean requiresComparator()
-
-