Class ModelVersionChange.AddUri

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

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

    • AddUri

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

    • uri

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

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

      public boolean equals(Object obj)
      Compares this AddUri instance with another object for equality. The comparison is based on the 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 AddUri 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 addition operation.
    • toString

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