Class IcebergTransform

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.s3tables.alpha.IcebergTransform
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-04-02T21:55:36.206Z") @Stability(Experimental) public class IcebergTransform extends software.amazon.jsii.JsiiObject
(experimental) Iceberg transform values for partition and sort fields.

Example:

 // Build a table with partition spec (minimal configuration)
 Table partitionedTable = Table.Builder.create(scope, "PartitionedTable")
         .tableName("partitioned_table")
         .namespace(namespace)
         .openTableFormat(OpenTableFormat.ICEBERG)
         .icebergMetadata(IcebergMetadataProperty.builder()
                 .icebergSchema(IcebergSchemaProperty.builder()
                         .schemaFieldList(List.of(SchemaFieldProperty.builder().name("event_date").type("date").required(true).build(), SchemaFieldProperty.builder().name("event_name").type("string").build()))
                         .build())
                 .icebergPartitionSpec(IcebergPartitionSpec.builder()
                         .fields(List.of(IcebergPartitionField.builder()
                                 .sourceId(1)
                                 .transform(IcebergTransform.IDENTITY)
                                 .name("date_partition")
                                 .build()))
                         .build())
                 .build())
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final IcebergTransform
    (experimental) Transform a timestamp/date field to day.
    static final IcebergTransform
    (experimental) Transform a timestamp field to hour.
    static final IcebergTransform
    (experimental) Use the column value as the transform value without transformation.
    static final IcebergTransform
    (experimental) Transform a timestamp/date field to month.
    static final IcebergTransform
    (experimental) Transform a timestamp/date field to year.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    IcebergTransform(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    IcebergTransform(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (experimental) Transform values into a fixed number of buckets.
    (experimental) The string value of the transform.
    of(String value)
    (experimental) Create a custom transform from a string value.
    (experimental) Returns the string representation of the transform.
    (experimental) Truncate values to a fixed width.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Field Details

    • DAY

      @Stability(Experimental) public static final IcebergTransform DAY
      (experimental) Transform a timestamp/date field to day.
    • HOUR

      @Stability(Experimental) public static final IcebergTransform HOUR
      (experimental) Transform a timestamp field to hour.
    • IDENTITY

      @Stability(Experimental) public static final IcebergTransform IDENTITY
      (experimental) Use the column value as the transform value without transformation.
    • MONTH

      @Stability(Experimental) public static final IcebergTransform MONTH
      (experimental) Transform a timestamp/date field to month.
    • YEAR

      @Stability(Experimental) public static final IcebergTransform YEAR
      (experimental) Transform a timestamp/date field to year.
  • Constructor Details

    • IcebergTransform

      protected IcebergTransform(software.amazon.jsii.JsiiObjectRef objRef)
    • IcebergTransform

      protected IcebergTransform(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • bucket

      @Stability(Experimental) @NotNull public static IcebergTransform bucket(@NotNull Number n)
      (experimental) Transform values into a fixed number of buckets.

      Parameters:
      n - The number of buckets (must be a positive integer). This parameter is required.
    • of

      @Stability(Experimental) @NotNull public static IcebergTransform of(@NotNull String value)
      (experimental) Create a custom transform from a string value.

      Parameters:
      value - The transform string value. This parameter is required.
    • truncate

      @Stability(Experimental) @NotNull public static IcebergTransform truncate(@NotNull Number width)
      (experimental) Truncate values to a fixed width.

      Parameters:
      width - The truncation width (must be a positive integer). This parameter is required.
    • toString

      @Stability(Experimental) @NotNull public String toString()
      (experimental) Returns the string representation of the transform.
      Overrides:
      toString in class Object
    • getValue

      @Stability(Experimental) @NotNull public String getValue()
      (experimental) The string value of the transform.