Class ModelVersionChange.RemoveUri

java.lang.Object
org.apache.gravitino.model.ModelVersionChange.RemoveUri
All Implemented Interfaces:
ModelVersionChange
Enclosing interface:
ModelVersionChange

public static final class ModelVersionChange.RemoveUri extends Object implements ModelVersionChange
A ModelVersionChange to remove a uri of a model version.
  • Constructor Details

    • RemoveUri

      public RemoveUri(String uriName)
      Creates a new ModelVersionChange.RemoveUri instance with the specified uri name.
      Parameters:
      uriName - The name of the uri to be removed.
  • Method Details

    • uriName

      public String uriName()
      Returns the name of the uri to be removed for the model version.
      Returns:
      The name of the uri to be removed for the model version.
    • equals

      public boolean equals(Object obj)
      Compares this RemoveUri instance with another object for equality. The comparison is based on the uri name of the model version.
      Overrides:
      equals in class Object
      Parameters:
      obj - The object to compare with this instance.
      Returns:
      true if the given object represents the same model update operation; false otherwise.
    • hashCode

      public int hashCode()
      Generates a hash code for this RemoveUri instance. The hash code is based on the uri and its name of the model.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code value for this URI removal operation.
    • toString

      public String toString()
      Provides a string representation of the RemoveUri instance. This string format includes the class name followed by the uri name to be removed.
      Overrides:
      toString in class Object
      Returns:
      A string summary of the RemoveUri instance.