Package org.apache.iceberg
Enum RewriteJobOrder
- java.lang.Object
-
- java.lang.Enum<RewriteJobOrder>
-
- org.apache.iceberg.RewriteJobOrder
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RewriteJobOrder>
public enum RewriteJobOrder extends java.lang.Enum<RewriteJobOrder>
Enum of supported rewrite job order, it defines the order in which the file groups should be written.- bytes-asc: rewrite the smallest job groups first.
- bytes-desc: rewrite the largest job groups first.
- files-asc: rewrite the job groups with the least files first.
- files-desc: rewrite the job groups with the most files first.
- none: rewrite job groups in the order they were planned (no specific ordering).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BYTES_ASC
BYTES_DESC
FILES_ASC
FILES_DESC
NONE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RewriteJobOrder
fromName(java.lang.String orderName)
java.lang.String
orderName()
static RewriteJobOrder
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RewriteJobOrder[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BYTES_ASC
public static final RewriteJobOrder BYTES_ASC
-
BYTES_DESC
public static final RewriteJobOrder BYTES_DESC
-
FILES_ASC
public static final RewriteJobOrder FILES_ASC
-
FILES_DESC
public static final RewriteJobOrder FILES_DESC
-
NONE
public static final RewriteJobOrder NONE
-
-
Method Detail
-
values
public static RewriteJobOrder[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RewriteJobOrder c : RewriteJobOrder.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RewriteJobOrder valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
orderName
public java.lang.String orderName()
-
fromName
public static RewriteJobOrder fromName(java.lang.String orderName)
-
-