public static final class TableChange.AddColumn extends Object implements TableChange.ColumnChange
If the field already exists, the change must result in an IllegalArgumentException
.
If the new field is nested and its parent does not exist or is not a struct, the change must
result in an IllegalArgumentException
.
TableChange.AddColumn, TableChange.After, TableChange.ColumnChange, TableChange.ColumnPosition, TableChange.DeleteColumn, TableChange.First, TableChange.RemoveProperty, TableChange.RenameColumn, TableChange.SetProperty, TableChange.UpdateColumnComment, TableChange.UpdateColumnDefaultValue, TableChange.UpdateColumnNullability, TableChange.UpdateColumnPosition, TableChange.UpdateColumnType
Modifier and Type | Method and Description |
---|---|
String |
comment() |
DataType |
dataType() |
ColumnDefaultValue |
defaultValue() |
boolean |
equals(Object o) |
String[] |
fieldNames() |
int |
hashCode() |
boolean |
isNullable() |
TableChange.ColumnPosition |
position() |
addColumn, addColumn, addColumn, addColumn, deleteColumn, removeProperty, renameColumn, setProperty, updateColumnComment, updateColumnDefaultValue, updateColumnNullability, updateColumnPosition, updateColumnType
public String[] fieldNames()
fieldNames
in interface TableChange.ColumnChange
public DataType dataType()
public boolean isNullable()
@Nullable public String comment()
@Nullable public TableChange.ColumnPosition position()
@Nullable public ColumnDefaultValue defaultValue()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object