public enum PartitionPlacementStrategy extends Enum<PartitionPlacementStrategy>
Enum Constant and Description |
---|
CLUSTER_WIDE
Partitions are placed without regard for cells, cluster wide.
|
PARTITION_IN_CELL
A partition's replicas are placed together in a cell.
|
TENANT_IN_CELL
A tenant's partitions are placed together in a cell.
|
Modifier and Type | Method and Description |
---|---|
Integer |
code() |
static PartitionPlacementStrategy |
toEnum(Integer code) |
static PartitionPlacementStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PartitionPlacementStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PartitionPlacementStrategy PARTITION_IN_CELL
public static final PartitionPlacementStrategy TENANT_IN_CELL
public static final PartitionPlacementStrategy CLUSTER_WIDE
public static PartitionPlacementStrategy[] values()
for (PartitionPlacementStrategy c : PartitionPlacementStrategy.values()) System.out.println(c);
public static PartitionPlacementStrategy 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 Integer code()
public static PartitionPlacementStrategy toEnum(Integer code)