public enum ShipStrategyType extends Enum<ShipStrategyType>
Enum Constant and Description |
---|
BROADCAST
Replicating the data set to all instances.
|
FORWARD
Forwarding the data locally in memory.
|
NONE
Constant used as an indicator for an unassigned ship strategy.
|
PARTITION_CUSTOM
Partitioning using a custom partitioner.
|
PARTITION_FORCED_REBALANCE
Partitioning the data evenly, forced at a specific location (cannot be pushed down by
optimizer).
|
PARTITION_HASH
Repartitioning the data deterministically through a hash function.
|
PARTITION_RANDOM
Repartitioning the data randomly, typically when the parallelism between two nodes changes.
|
PARTITION_RANGE
Partitioning the data in ranges according to a total order.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isNetworkStrategy() |
boolean |
requiresComparator() |
static ShipStrategyType |
valueOf(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.
|
public static final ShipStrategyType NONE
public static final ShipStrategyType FORWARD
public static final ShipStrategyType PARTITION_RANDOM
public static final ShipStrategyType PARTITION_HASH
public static final ShipStrategyType PARTITION_RANGE
public static final ShipStrategyType PARTITION_FORCED_REBALANCE
public static final ShipStrategyType BROADCAST
public static final ShipStrategyType PARTITION_CUSTOM
public static ShipStrategyType[] values()
for (ShipStrategyType c : ShipStrategyType.values()) System.out.println(c);
public static ShipStrategyType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isNetworkStrategy()
public boolean requiresComparator()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.