public enum ShipStrategyType extends Enum<ShipStrategyType>
| 枚举常量和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isNetworkStrategy() |
boolean |
requiresComparator() |
static ShipStrategyType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ShipStrategyType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public boolean isNetworkStrategy()
public boolean requiresComparator()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.