Interface IcebergSchemaV2.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<IcebergSchemaV2.Builder,,IcebergSchemaV2> SdkBuilder<IcebergSchemaV2.Builder,,IcebergSchemaV2> SdkPojo
- Enclosing class:
IcebergSchemaV2
-
Method Summary
Modifier and TypeMethodDescriptionfields(Collection<SchemaV2Field> fields) The schema fields for the table.fields(Consumer<SchemaV2Field.Builder>... fields) The schema fields for the table.fields(SchemaV2Field... fields) The schema fields for the table.identifierFieldIds(Integer... identifierFieldIds) A list of field IDs that are used as the identifier fields for the table.identifierFieldIds(Collection<Integer> identifierFieldIds) A list of field IDs that are used as the identifier fields for the table.An optional unique identifier for the schema.The type of the top-level schema, which is always astructtype as defined in the Apache Iceberg specification.type(SchemaV2FieldType type) The type of the top-level schema, which is always astructtype as defined in the Apache Iceberg specification.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
-
type
The type of the top-level schema, which is always a
structtype as defined in the Apache Iceberg specification. This value must bestruct.- Parameters:
type- The type of the top-level schema, which is always astructtype as defined in the Apache Iceberg specification. This value must bestruct.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of the top-level schema, which is always a
structtype as defined in the Apache Iceberg specification. This value must bestruct.- Parameters:
type- The type of the top-level schema, which is always astructtype as defined in the Apache Iceberg specification. This value must bestruct.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fields
The schema fields for the table. Each field defines a column in the table, including its name, type, and whether it is required.
- Parameters:
fields- The schema fields for the table. Each field defines a column in the table, including its name, type, and whether it is required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fields
The schema fields for the table. Each field defines a column in the table, including its name, type, and whether it is required.
- Parameters:
fields- The schema fields for the table. Each field defines a column in the table, including its name, type, and whether it is required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fields
The schema fields for the table. Each field defines a column in the table, including its name, type, and whether it is required.
This is a convenience method that creates an instance of theSchemaV2Field.Builderavoiding the need to create one manually viaSchemaV2Field.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofields(List<SchemaV2Field>).- Parameters:
fields- a consumer that will call methods onSchemaV2Field.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
schemaId
An optional unique identifier for the schema. Schema IDs are used by Apache Iceberg to track schema evolution.
- Parameters:
schemaId- An optional unique identifier for the schema. Schema IDs are used by Apache Iceberg to track schema evolution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
identifierFieldIds
A list of field IDs that are used as the identifier fields for the table. Identifier fields uniquely identify a row in the table.
- Parameters:
identifierFieldIds- A list of field IDs that are used as the identifier fields for the table. Identifier fields uniquely identify a row in the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
identifierFieldIds
A list of field IDs that are used as the identifier fields for the table. Identifier fields uniquely identify a row in the table.
- Parameters:
identifierFieldIds- A list of field IDs that are used as the identifier fields for the table. Identifier fields uniquely identify a row in the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-