public enum PartitioningProperty extends Enum<PartitioningProperty>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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)
Returns the enum constant of this type with the specified name.
|
static PartitioningProperty[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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
- 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 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–2024 The Apache Software Foundation. All rights reserved.