Interface IcebergSortOrder
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IcebergSortOrder.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-02T21:55:36.206Z")
@Stability(Experimental)
public interface IcebergSortOrder
extends software.amazon.jsii.JsiiSerializable
(experimental) Sort order specification for Iceberg table.
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 ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forIcebergSortOrderstatic final classAn implementation forIcebergSortOrder -
Method Summary
Modifier and TypeMethodDescriptionstatic IcebergSortOrder.Builderbuilder()(experimental) The list of sort fields.default Number(experimental) The unique identifier for the sort order.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFields
(experimental) The list of sort fields. -
getOrderId
(experimental) The unique identifier for the sort order.Default: 1
-
builder
- Returns:
- a
IcebergSortOrder.BuilderofIcebergSortOrder
-