Class TableChange.RenameColumn
Object
org.apache.spark.sql.connector.catalog.TableChange.RenameColumn
- All Implemented Interfaces:
TableChange
,TableChange.ColumnChange
- Enclosing interface:
- TableChange
public static final class TableChange.RenameColumn
extends Object
implements TableChange.ColumnChange
A TableChange to rename a field.
The name is used to find the field to rename. The new name will replace the leaf field name. For example, renameColumn("a.b.c", "x") should produce column a.b.x.
If the field does not exist, the change must result in an IllegalArgumentException
.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.spark.sql.connector.catalog.TableChange
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
-
Method Summary
-
Method Details
-
fieldNames
- Specified by:
fieldNames
in interfaceTableChange.ColumnChange
-
newName
-
equals
-
hashCode
public int hashCode()
-