java.lang.Object
java.lang.Enum<SortDirection>
software.amazon.awscdk.services.s3tables.alpha.SortDirection
All Implemented Interfaces:
Serializable, Comparable<SortDirection>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-04-02T09:32:03.842Z") @Stability(Experimental) public enum SortDirection extends Enum<SortDirection>
(experimental) Sort direction 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();
 
  • Enum Constant Details

    • ASC

      @Stability(Experimental) public static final SortDirection ASC
      (experimental) Sort values in ascending order.
    • DESC

      @Stability(Experimental) public static final SortDirection DESC
      (experimental) Sort values in descending order.
  • Method Details

    • values

      public static SortDirection[] 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

      public static SortDirection valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null