Interface SchemaField.Builder

  • Method Details

    • id

      An optional unique identifier for the schema field. Field IDs are used by Apache Iceberg to track schema evolution and maintain compatibility across schema changes. If not specified, S3 Tables automatically assigns field IDs.

      Parameters:
      id - An optional unique identifier for the schema field. Field IDs are used by Apache Iceberg to track schema evolution and maintain compatibility across schema changes. If not specified, S3 Tables automatically assigns field IDs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the field.

      Parameters:
      name - The name of the field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      The field type. S3 Tables supports all Apache Iceberg primitive types. For more information, see the Apache Iceberg documentation.

      Parameters:
      type - The field type. S3 Tables supports all Apache Iceberg primitive types. For more information, see the Apache Iceberg documentation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • required

      SchemaField.Builder required(Boolean required)

      A Boolean value that specifies whether values are required for each row in this field. By default, this is false and null values are allowed in the field. If this is true the field does not allow null values.

      Parameters:
      required - A Boolean value that specifies whether values are required for each row in this field. By default, this is false and null values are allowed in the field. If this is true the field does not allow null values.
      Returns:
      Returns a reference to this object so that method calls can be chained together.