gravitino.api.rel.table_change.UpdateColumnPosition

final class gravitino.api.rel.table_change.UpdateColumnPosition(_field_name: list[str], _position: ColumnPosition)

Bases: ColumnChange

A TableChange to update the position of a field.

The field names are used to find the field to update.

If the field does not exist, the change must result in an IllegalArgumentException.

__init__(_field_name: list[str], _position: ColumnPosition) None

Methods

__init__(_field_name, _position)

field_name()

Retrieves the field name of the column to be modified.

get_field_name()

Retrieves the field name of the column whose position is being updated.

get_position()

Retrieves the new position for the column.

field_name() list[str]

Retrieves the field name of the column to be modified.

Returns:
list[str]:

A list of strings representing the field name.

get_field_name() list[str]

Retrieves the field name of the column whose position is being updated.

Returns:

list[str]: A list of strings representing the field name.

get_position() ColumnPosition

Retrieves the new position for the column.

Returns:

TableChange.ColumnPosition: The new position of the column.