public static class TableUpdateRequest.AddTableColumnRequest extends java.lang.Object implements TableUpdateRequest
TableUpdateRequest.AddTableColumnRequest, TableUpdateRequest.DeleteTableColumnRequest, TableUpdateRequest.RemoveTablePropertyRequest, TableUpdateRequest.RenameTableColumnRequest, TableUpdateRequest.RenameTableRequest, TableUpdateRequest.SetTablePropertyRequest, TableUpdateRequest.UpdateTableColumnCommentRequest, TableUpdateRequest.UpdateTableColumnNullabilityRequest, TableUpdateRequest.UpdateTableColumnPositionRequest, TableUpdateRequest.UpdateTableColumnTypeRequest, TableUpdateRequest.UpdateTableCommentRequest
Constructor and Description |
---|
AddTableColumnRequest()
Default constructor for Jackson deserialization.
|
AddTableColumnRequest(java.lang.String[] fieldName,
Type dataType,
java.lang.String comment)
Constructor for AddTableColumnRequest with default position and nullable value(true).
|
AddTableColumnRequest(java.lang.String[] fieldName,
Type dataType,
java.lang.String comment,
TableChange.ColumnPosition position)
Constructor for AddTableColumnRequest with default nullable value(true).
|
AddTableColumnRequest(java.lang.String[] fieldName,
Type dataType,
java.lang.String comment,
TableChange.ColumnPosition position,
boolean nullable)
Constructor for AddTableColumnRequest.
|
Modifier and Type | Method and Description |
---|---|
TableChange |
tableChange()
The table change that is requested.
|
void |
validate()
Validates the request.
|
public AddTableColumnRequest()
public AddTableColumnRequest(java.lang.String[] fieldName, Type dataType, java.lang.String comment, TableChange.ColumnPosition position, boolean nullable)
fieldName
- the field name to adddataType
- the data type of the field to addcomment
- the comment of the field to addposition
- the position of the field to add, null for default positionnullable
- whether the field to add is nullablepublic AddTableColumnRequest(java.lang.String[] fieldName, Type dataType, java.lang.String comment, TableChange.ColumnPosition position)
fieldName
- the field name to adddataType
- the data type of the field to addcomment
- the comment of the field to addposition
- the position of the field to addpublic AddTableColumnRequest(java.lang.String[] fieldName, Type dataType, java.lang.String comment)
fieldName
- the field name to adddataType
- the data type of the field to addcomment
- the comment of the field to addpublic void validate() throws java.lang.IllegalArgumentException
validate
in interface RESTMessage
java.lang.IllegalArgumentException
- If the request is invalid, this exception is thrown.public TableChange tableChange()
TableUpdateRequest
tableChange
in interface TableUpdateRequest