Class CatalogChange.UpdateCatalogComment

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

public static final class CatalogChange.UpdateCatalogComment extends Object implements CatalogChange
A catalog change to update the catalog comment.
  • Method Details

    • getNewComment

      public String getNewComment()
      Retrieves the new comment intended for the catalog.
      Returns:
      The new comment that has been set for the catalog.
    • equals

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

      public int hashCode()
      Generates a hash code for this UpdateCatalogComment instance. The hash code is based on the new comment for the catalog.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code representing this comment update operation.
    • toString

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