Class ModelVersionChange.UpdateUri

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

public static final class ModelVersionChange.UpdateUri extends Object implements ModelVersionChange
A ModelVersionChange to update the uri of a model version.
  • Constructor Details

    • UpdateUri

      public UpdateUri(String newUri)
      Creates a new ModelVersionChange.UpdateUri instance with the specified new uri.
      Parameters:
      newUri - The new uri to be set for the model version.
    • UpdateUri

      public UpdateUri(String uriName, String newUri)
      Creates a new ModelVersionChange.UpdateUri instance with the specified new uri and its name.
      Parameters:
      uriName - The name of the uri to be updated for the model version.
      newUri - The new uri to be set for the model version.
  • Method Details

    • newUri

      public String newUri()
      Returns the new uri to be set for the model version.
      Returns:
      The new uri to be set for the model version.
    • uriName

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

      public boolean equals(Object obj)
      Compares this UpdateUri instance with another object for equality. The comparison is based on the new uri and its 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 UpdateUri instance. The hash code is based on the new uri and its name of the model version.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code value for this URI update operation.
    • toString

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