public enum PartitioningProperty extends Enum<PartitioningProperty>
| 枚举常量和说明 |
|---|
ANY_DISTRIBUTION
Any possible way of data distribution, including random partitioning and full replication.
|
ANY_PARTITIONING
A not further specified partitioning on a key (hash-, or range partitioning, or some other scheme even).
|
CUSTOM_PARTITIONING
A custom partitioning, accompanied by a
Partitioner. |
FORCED_REBALANCED
A forced even re-balancing.
|
FULL_REPLICATION
Full replication of the data to each parallel instance.
|
HASH_PARTITIONED
A hash partitioning on a certain key.
|
RANDOM_PARTITIONED
A random disjunct (non-replicated) data distribution, where each datum is contained in one partition only.
|
RANGE_PARTITIONED
A range partitioning on a certain key.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isComputablyPartitioned()
Checks, if this property represents a partitioning that is computable.
|
boolean |
isPartitioned()
Checks, if this property represents in fact a partitioning.
|
boolean |
isPartitionedOnKey()
Checks if this property presents a partitioning that is not random, but on a partitioning key.
|
boolean |
isReplication()
Checks, if this property represents a full replication.
|
static PartitioningProperty |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static PartitioningProperty[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final PartitioningProperty ANY_DISTRIBUTION
public static final PartitioningProperty RANDOM_PARTITIONED
public static final PartitioningProperty HASH_PARTITIONED
public static final PartitioningProperty RANGE_PARTITIONED
public static final PartitioningProperty ANY_PARTITIONING
public static final PartitioningProperty FULL_REPLICATION
public static final PartitioningProperty FORCED_REBALANCED
public static final PartitioningProperty CUSTOM_PARTITIONING
Partitioner.public static PartitioningProperty[] values()
for (PartitioningProperty c : PartitioningProperty.values()) System.out.println(c);
public static PartitioningProperty valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public boolean isPartitioned()
public boolean isReplication()
public boolean isPartitionedOnKey()
public boolean isComputablyPartitioned()
Examples for computable partitioning schemes are hash- or range-partitioning. An example for a non-computable partitioning is the implicit partitioning that exists though a globally unique key.
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.