Interface IcebergMetadata.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<IcebergMetadata.Builder,,IcebergMetadata> SdkBuilder<IcebergMetadata.Builder,,IcebergMetadata> SdkPojo
- Enclosing class:
IcebergMetadata
-
Method Summary
Modifier and TypeMethodDescriptiondefault IcebergMetadata.BuilderpartitionSpec(Consumer<IcebergPartitionSpec.Builder> partitionSpec) The partition specification for the Iceberg table.partitionSpec(IcebergPartitionSpec partitionSpec) The partition specification for the Iceberg table.properties(Map<String, String> properties) A map of custom configuration properties for the Iceberg table.default IcebergMetadata.Builderschema(Consumer<IcebergSchema.Builder> schema) The schema for an Iceberg table.schema(IcebergSchema schema) The schema for an Iceberg table.default IcebergMetadata.BuilderschemaV2(Consumer<IcebergSchemaV2.Builder> schemaV2) The schema for an Iceberg table using the V2 format.schemaV2(IcebergSchemaV2 schemaV2) The schema for an Iceberg table using the V2 format.default IcebergMetadata.BuilderwriteOrder(Consumer<IcebergSortOrder.Builder> writeOrder) The sort order for the Iceberg table.writeOrder(IcebergSortOrder writeOrder) The sort order for the Iceberg table.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
schema
The schema for an Iceberg table. Use this property to define table schemas with primitive types only. For schemas that include nested or complex types such as
struct,list, ormap, useschemaV2instead.- Parameters:
schema- The schema for an Iceberg table. Use this property to define table schemas with primitive types only. For schemas that include nested or complex types such asstruct,list, ormap, useschemaV2instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schema
The schema for an Iceberg table. Use this property to define table schemas with primitive types only. For schemas that include nested or complex types such as
This is a convenience method that creates an instance of thestruct,list, ormap, useschemaV2instead.IcebergSchema.Builderavoiding the need to create one manually viaIcebergSchema.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toschema(IcebergSchema).- Parameters:
schema- a consumer that will call methods onIcebergSchema.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
schemaV2
The schema for an Iceberg table using the V2 format. Use this property to define table schemas that include nested or complex data types such as
struct,list, ormap, in addition to primitive types. For schemas with only primitive types, you can use eitherschemaorschemaV2.- Parameters:
schemaV2- The schema for an Iceberg table using the V2 format. Use this property to define table schemas that include nested or complex data types such asstruct,list, ormap, in addition to primitive types. For schemas with only primitive types, you can use eitherschemaorschemaV2.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schemaV2
The schema for an Iceberg table using the V2 format. Use this property to define table schemas that include nested or complex data types such as
This is a convenience method that creates an instance of thestruct,list, ormap, in addition to primitive types. For schemas with only primitive types, you can use eitherschemaorschemaV2.IcebergSchemaV2.Builderavoiding the need to create one manually viaIcebergSchemaV2.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toschemaV2(IcebergSchemaV2).- Parameters:
schemaV2- a consumer that will call methods onIcebergSchemaV2.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
partitionSpec
The partition specification for the Iceberg table. Partitioning organizes data into separate files based on the values of one or more fields, which can improve query performance by reducing the amount of data scanned. Each partition field applies a transform (such as identity, year, month, or bucket) to a single field.
- Parameters:
partitionSpec- The partition specification for the Iceberg table. Partitioning organizes data into separate files based on the values of one or more fields, which can improve query performance by reducing the amount of data scanned. Each partition field applies a transform (such as identity, year, month, or bucket) to a single field.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
partitionSpec
The partition specification for the Iceberg table. Partitioning organizes data into separate files based on the values of one or more fields, which can improve query performance by reducing the amount of data scanned. Each partition field applies a transform (such as identity, year, month, or bucket) to a single field.
This is a convenience method that creates an instance of theIcebergPartitionSpec.Builderavoiding the need to create one manually viaIcebergPartitionSpec.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topartitionSpec(IcebergPartitionSpec).- Parameters:
partitionSpec- a consumer that will call methods onIcebergPartitionSpec.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
writeOrder
The sort order for the Iceberg table. Sort order defines how data is sorted within data files, which can improve query performance by enabling more efficient data skipping and filtering.
- Parameters:
writeOrder- The sort order for the Iceberg table. Sort order defines how data is sorted within data files, which can improve query performance by enabling more efficient data skipping and filtering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
writeOrder
The sort order for the Iceberg table. Sort order defines how data is sorted within data files, which can improve query performance by enabling more efficient data skipping and filtering.
This is a convenience method that creates an instance of theIcebergSortOrder.Builderavoiding the need to create one manually viaIcebergSortOrder.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed towriteOrder(IcebergSortOrder).- Parameters:
writeOrder- a consumer that will call methods onIcebergSortOrder.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
properties
A map of custom configuration properties for the Iceberg table.
- Parameters:
properties- A map of custom configuration properties for the Iceberg table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-