Enum NullOrder
- All Implemented Interfaces:
Serializable,Comparable<NullOrder>,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-31T09:54:53.942Z")
@Stability(Experimental)
public enum NullOrder
extends Enum<NullOrder>
(experimental) Null ordering values for Iceberg sort fields.
Example:
// Build a table with partition spec, sort order, and table properties
Table advancedTable = Table.Builder.create(scope, "AdvancedTable")
.tableName("advanced_table")
.namespace(namespace)
.openTableFormat(OpenTableFormat.ICEBERG)
.icebergMetadata(IcebergMetadataProperty.builder()
.icebergSchema(IcebergSchemaProperty.builder()
.schemaFieldList(List.of(SchemaFieldProperty.builder().id(1).name("event_date").type("date").required(true).build(), SchemaFieldProperty.builder().id(2).name("user_id").type("string").required(true).build()))
.build())
.icebergPartitionSpec(IcebergPartitionSpec.builder()
.specId(0)
.fields(List.of(IcebergPartitionField.builder()
.sourceId(1)
.transform(IcebergTransform.IDENTITY)
.name("date_partition")
.fieldId(1000)
.build()))
.build())
.icebergSortOrder(IcebergSortOrder.builder()
.orderId(1)
.fields(List.of(IcebergSortField.builder()
.sourceId(1)
.transform(IcebergTransform.IDENTITY)
.direction(SortDirection.ASC)
.nullOrder(NullOrder.NULLS_LAST)
.build()))
.build())
.tableProperties(List.of(TablePropertyEntry.builder().key("write.format.default").value("parquet").build()))
.build())
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription(experimental) Place null values before non-null values.(experimental) Place null values after non-null values. -
Method Summary
-
Enum Constant Details
-
NULLS_FIRST
(experimental) Place null values before non-null values. -
NULLS_LAST
(experimental) Place null values after non-null values.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-