Enum ShipStrategyType
- All Implemented Interfaces:
Serializable,Comparable<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 ConstantsEnum ConstantDescriptionReplicating the data set to all instances.Forwarding the data locally in memory.Constant used as an indicator for an unassigned ship strategy.Partitioning using a custom partitioner.Partitioning the data evenly, forced at a specific location (cannot be pushed down by optimizer).Repartitioning the data deterministically through a hash function.Repartitioning the data randomly, typically when the parallelism between two nodes changes.Partitioning the data in ranges according to a total order. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanstatic ShipStrategyTypeReturns 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 Details
-
NONE
Constant used as an indicator for an unassigned ship strategy. -
FORWARD
Forwarding the data locally in memory. -
PARTITION_RANDOM
Repartitioning the data randomly, typically when the parallelism between two nodes changes. -
PARTITION_HASH
Repartitioning the data deterministically through a hash function. -
PARTITION_RANGE
Partitioning the data in ranges according to a total order. -
PARTITION_FORCED_REBALANCE
Partitioning the data evenly, forced at a specific location (cannot be pushed down by optimizer). -
BROADCAST
Replicating the data set to all instances. -
PARTITION_CUSTOM
Partitioning using a custom partitioner.
-
-
Method Details
-
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
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()
-