Interface IcebergPartitionSpec
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IcebergPartitionSpec.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-02T21:55:36.205Z")
@Stability(Experimental)
public interface IcebergPartitionSpec
extends software.amazon.jsii.JsiiSerializable
(experimental) Partition specification for Iceberg table.
Contains the complete partitioning configuration for a table, including all partition fields. Use this to define multi-level partitioning (e.g., partition by date, then by region).
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 ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forIcebergPartitionSpecstatic final classAn implementation forIcebergPartitionSpec -
Method Summary
Modifier and TypeMethodDescriptionstatic IcebergPartitionSpec.Builderbuilder()(experimental) The list of partition fields.default Number(experimental) The unique identifier for the partition specification.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFields
(experimental) The list of partition fields. -
getSpecId
(experimental) The unique identifier for the partition specification.Default: 0
-
builder
- Returns:
- a
IcebergPartitionSpec.BuilderofIcebergPartitionSpec
-