Package org.apache.gravitino.model
Class ModelVersionChange.UpdateAliases
java.lang.Object
org.apache.gravitino.model.ModelVersionChange.UpdateAliases
- All Implemented Interfaces:
ModelVersionChange
- Enclosing interface:
- ModelVersionChange
public static final class ModelVersionChange.UpdateAliases
extends Object
implements ModelVersionChange
Represents an update to a model version’s aliases, specifying which aliases to add and which to
remove.
Both alias sets are stored as immutable.
-
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
ConstructorsConstructorDescriptionUpdateAliases(List<String> aliasesToAdd, List<String> aliasesToRemove) Constructs a new aliases-update operation, specifying the aliases to add and remove. -
Method Summary
Modifier and TypeMethodDescriptionReturns the set of aliases to add.Returns the set of aliases to remove.booleanCompares this UpdateAlias instance with another object for equality.inthashCode()Generates a hash code for this UpdateAlias instance.toString()Provides a string representation of the UpdateAlias instance.
-
Constructor Details
-
UpdateAliases
Constructs a new aliases-update operation, specifying the aliases to add and remove.- Parameters:
aliasesToAdd- the aliases to add, or null for nonealiasesToRemove- the aliases to remove, or null for none
-
-
Method Details
-
aliasesToAdd
Returns the set of aliases to add.- Returns:
- an immutable, sorted set of aliases to add
-
aliasesToRemove
Returns the set of aliases to remove.- Returns:
- an immutable, sorted set of aliases to remove
-
equals
Compares this UpdateAlias instance with another object for equality. The comparison is based on the both new and removed aliases of the model version. -
hashCode
public int hashCode()Generates a hash code for this UpdateAlias instance. The hash code is based on the both new and removed aliases of the model. -
toString
Provides a string representation of the UpdateAlias instance. This string format includes the class name followed by the new and removed aliases to be set and removed.
-