Package org.apache.iceberg
Enum Class DistributionMode
- All Implemented Interfaces:
- Serializable,- Comparable<DistributionMode>,- Constable
Enum of supported write distribution mode, it defines the write behavior of batch or streaming
 job:
 
1. none: don't shuffle rows. It is suitable for scenarios where the rows are located in only few partitions, otherwise that may produce too many small files because each task is writing rows into different partitions randomly.
2. hash: hash distribute by partition key, which is suitable for the scenarios where the rows are located into different partitions evenly.
3. range: range distribute by partition key (or sort key if table has an SortOrder),
 which is suitable for the scenarios where rows are located into different partitions with skew
 distribution.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptionstatic DistributionModemodeName()static DistributionModeReturns the enum constant of this class with the specified name.static DistributionMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
NONE
- 
HASH
- 
RANGE
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
modeName
- 
fromName
 
-