Package org.apache.gravitino.model
Class ModelVersionChange.UpdateUri
java.lang.Object
org.apache.gravitino.model.ModelVersionChange.UpdateUri
- All Implemented Interfaces:
ModelVersionChange
- Enclosing interface:
- ModelVersionChange
A ModelVersionChange to update the uri of a model version.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.gravitino.model.ModelVersionChange
ModelVersionChange.AddUri, ModelVersionChange.RemoveProperty, ModelVersionChange.RemoveUri, ModelVersionChange.SetProperty, ModelVersionChange.UpdateAliases, ModelVersionChange.UpdateComment, ModelVersionChange.UpdateUri
-
Field Summary
Fields inherited from interface org.apache.gravitino.model.ModelVersionChange
COMMA_JOINER
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newModelVersionChange.UpdateUri
instance with the specified new uri.Creates a newModelVersionChange.UpdateUri
instance with the specified new uri and its name. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares this UpdateUri instance with another object for equality.int
hashCode()
Generates a hash code for this UpdateUri instance.newUri()
Returns the new uri to be set for the model version.toString()
Provides a string representation of the UpdateUri instance.uriName()
Returns the name of the uri to be updated for the model version.
-
Constructor Details
-
UpdateUri
Creates a newModelVersionChange.UpdateUri
instance with the specified new uri.- Parameters:
newUri
- The new uri to be set for the model version.
-
UpdateUri
Creates a newModelVersionChange.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
Returns the new uri to be set for the model version.- Returns:
- The new uri to be set for the model version.
-
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
Compares this UpdateUri instance with another object for equality. The comparison is based on the new uri and its name of the model version. -
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. -
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.
-