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
FieldsModifier and TypeFieldDescriptionstatic 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
ConstructorsModifierConstructorDescriptionprotectedIcebergTransform(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedIcebergTransform(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic IcebergTransform(experimental) Transform values into a fixed number of buckets.getValue()(experimental) The string value of the transform.static IcebergTransform(experimental) Create a custom transform from a string value.toString()(experimental) Returns the string representation of the transform.static IcebergTransform(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, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
DAY
(experimental) Transform a timestamp/date field to day. -
HOUR
(experimental) Transform a timestamp field to hour. -
IDENTITY
(experimental) Use the column value as the transform value without transformation. -
MONTH
(experimental) Transform a timestamp/date field to month. -
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
(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
(experimental) Create a custom transform from a string value.- Parameters:
value- The transform string value. This parameter is required.
-
truncate
(experimental) Truncate values to a fixed width.- Parameters:
width- The truncation width (must be a positive integer). This parameter is required.
-
toString
(experimental) Returns the string representation of the transform. -
getValue
(experimental) The string value of the transform.
-