Class TableChange.UpdateColumnNullability

java.lang.Object
org.apache.gravitino.rel.TableChange.UpdateColumnNullability
All Implemented Interfaces:
TableChange, TableChange.ColumnChange
Enclosing interface:
TableChange

public static final class TableChange.UpdateColumnNullability extends Object implements TableChange.ColumnChange
A TableChange to update the nullability 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.

  • Method Details

    • fieldName

      public String[] fieldName()
      Retrieves the field name of the column whose nullability is being updated.
      Specified by:
      fieldName in interface TableChange.ColumnChange
      Returns:
      An array of strings representing the field name.
    • nullable

      public boolean nullable()
      The nullable flag of the column.
      Returns:
      true if the column is nullable; false otherwise.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object