Interface IcebergSchema.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<IcebergSchema.Builder,IcebergSchema>,SdkBuilder<IcebergSchema.Builder,IcebergSchema>,SdkPojo
- Enclosing class:
- IcebergSchema
@Mutable @NotThreadSafe public static interface IcebergSchema.Builder extends SdkPojo, CopyableBuilder<IcebergSchema.Builder,IcebergSchema>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IcebergSchema.Builderfields(Collection<IcebergStructField> fields)The list of field definitions that make up the table schema, including field names, types, and metadata.IcebergSchema.Builderfields(Consumer<IcebergStructField.Builder>... fields)The list of field definitions that make up the table schema, including field names, types, and metadata.IcebergSchema.Builderfields(IcebergStructField... fields)The list of field definitions that make up the table schema, including field names, types, and metadata.IcebergSchema.BuilderidentifierFieldIds(Integer... identifierFieldIds)The list of field identifiers that uniquely identify records in the table, used for row-level operations and deduplication.IcebergSchema.BuilderidentifierFieldIds(Collection<Integer> identifierFieldIds)The list of field identifiers that uniquely identify records in the table, used for row-level operations and deduplication.IcebergSchema.BuilderschemaId(Integer schemaId)The unique identifier for this schema version within the Iceberg table's schema evolution history.IcebergSchema.Buildertype(String type)The root type of the schema structure, typically "struct" for Iceberg table schemas.IcebergSchema.Buildertype(IcebergStructTypeEnum type)The root type of the schema structure, typically "struct" for Iceberg table schemas.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
schemaId
IcebergSchema.Builder schemaId(Integer schemaId)
The unique identifier for this schema version within the Iceberg table's schema evolution history.
- Parameters:
schemaId- The unique identifier for this schema version within the Iceberg table's schema evolution history.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
identifierFieldIds
IcebergSchema.Builder identifierFieldIds(Collection<Integer> identifierFieldIds)
The list of field identifiers that uniquely identify records in the table, used for row-level operations and deduplication.
- Parameters:
identifierFieldIds- The list of field identifiers that uniquely identify records in the table, used for row-level operations and deduplication.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
identifierFieldIds
IcebergSchema.Builder identifierFieldIds(Integer... identifierFieldIds)
The list of field identifiers that uniquely identify records in the table, used for row-level operations and deduplication.
- Parameters:
identifierFieldIds- The list of field identifiers that uniquely identify records in the table, used for row-level operations and deduplication.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
IcebergSchema.Builder type(String type)
The root type of the schema structure, typically "struct" for Iceberg table schemas.
- Parameters:
type- The root type of the schema structure, typically "struct" for Iceberg table schemas.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
IcebergStructTypeEnum,IcebergStructTypeEnum
-
type
IcebergSchema.Builder type(IcebergStructTypeEnum type)
The root type of the schema structure, typically "struct" for Iceberg table schemas.
- Parameters:
type- The root type of the schema structure, typically "struct" for Iceberg table schemas.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
IcebergStructTypeEnum,IcebergStructTypeEnum
-
fields
IcebergSchema.Builder fields(Collection<IcebergStructField> fields)
The list of field definitions that make up the table schema, including field names, types, and metadata.
- Parameters:
fields- The list of field definitions that make up the table schema, including field names, types, and metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fields
IcebergSchema.Builder fields(IcebergStructField... fields)
The list of field definitions that make up the table schema, including field names, types, and metadata.
- Parameters:
fields- The list of field definitions that make up the table schema, including field names, types, and metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fields
IcebergSchema.Builder fields(Consumer<IcebergStructField.Builder>... fields)
The list of field definitions that make up the table schema, including field names, types, and metadata.
This is a convenience method that creates an instance of theIcebergStructField.Builderavoiding the need to create one manually viaIcebergStructField.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#fields(List.) - Parameters:
fields- a consumer that will call methods onIcebergStructField.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#fields(java.util.Collection)
-
-