Class CatalogChange.RenameCatalog

java.lang.Object
org.apache.gravitino.CatalogChange.RenameCatalog
All Implemented Interfaces:
CatalogChange
Enclosing interface:
CatalogChange

public static final class CatalogChange.RenameCatalog extends Object implements CatalogChange
A catalog change to rename the catalog.
  • Method Details

    • getNewName

      public String getNewName()
      Retrieves the new name set for the catalog.
      Returns:
      The new name of the catalog.
    • equals

      public boolean equals(Object o)
      Compares this RenameCatalog instance with another object for equality. Two instances are considered equal if they designate the same new name for the catalog.
      Overrides:
      equals in class Object
      Parameters:
      o - The object to compare with this instance.
      Returns:
      true if the given object represents an identical catalog renaming operation; false otherwise.
    • hashCode

      public int hashCode()
      Generates a hash code for this RenameCatalog instance. The hash code is primarily based on the new name for the catalog.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code value for this renaming operation.
    • toString

      public String toString()
      Provides a string representation of the RenameCatalog instance. This string includes the class name followed by the new name of the catalog.
      Overrides:
      toString in class Object
      Returns:
      A string summary of this renaming operation.