Class TableUpdateRequest.AddTableColumnRequest

java.lang.Object
org.apache.gravitino.dto.requests.TableUpdateRequest.AddTableColumnRequest
All Implemented Interfaces:
TableUpdateRequest, RESTMessage, RESTRequest
Enclosing interface:
TableUpdateRequest

public static class TableUpdateRequest.AddTableColumnRequest extends Object implements TableUpdateRequest
Represents a request to add a column to a table.
  • Constructor Details

    • AddTableColumnRequest

      public AddTableColumnRequest()
      Default constructor for Jackson deserialization.
    • AddTableColumnRequest

      public AddTableColumnRequest(String[] fieldName, Type dataType, String comment, TableChange.ColumnPosition position, boolean nullable, boolean autoIncrement, Expression defaultValue)
      Constructor for AddTableColumnRequest.
      Parameters:
      fieldName - the field name to add
      dataType - the data type of the field to add
      comment - the comment of the field to add
      position - the position of the field to add, null for default position
      nullable - whether the field to add is nullable
      autoIncrement - whether the field to add is auto increment
      defaultValue - whether the field has default value
    • AddTableColumnRequest

      public AddTableColumnRequest(String[] fieldName, Type dataType, String comment, TableChange.ColumnPosition position)
      Constructor for AddTableColumnRequest with default nullable value(true).
      Parameters:
      fieldName - the field name to add
      dataType - the data type of the field to add
      comment - the comment of the field to add
      position - the position of the field to add
    • AddTableColumnRequest

      public AddTableColumnRequest(String[] fieldName, Type dataType, String comment)
      Constructor for AddTableColumnRequest with default position and nullable value(true).
      Parameters:
      fieldName - the field name to add
      dataType - the data type of the field to add
      comment - the comment of the field to add
  • Method Details