Class TableChange.After

java.lang.Object
org.apache.gravitino.rel.TableChange.After
All Implemented Interfaces:
TableChange.ColumnPosition
Enclosing interface:
TableChange

public static final class TableChange.After extends Object implements TableChange.ColumnPosition
Column position AFTER means the specified column should be put after the given `column`. Note that, the specified column may be a nested field, and then the given `column` refers to a field in the same struct.
  • Method Details

    • getColumn

      public String getColumn()
      Retrieves the name of the reference column after which the specified column will be placed.
      Returns:
      The name of the reference column.
    • equals

      public boolean equals(Object o)
      Compares this After instance with another object for equality. Two instances are considered equal if they refer to the same column name.
      Overrides:
      equals in class Object
      Parameters:
      o - The object to compare with this instance.
      Returns:
      true if the given object refers to the same column; false otherwise.
    • hashCode

      public int hashCode()
      Generates a hash code for this After instance. The hash code is based on the column name.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code value for this column positioning operation.
    • toString

      public String toString()
      Overrides:
      toString in class Object