Package org.apache.gravitino.tag
Interface TagChange
- All Known Implementing Classes:
TagChange.RemoveProperty,TagChange.RenameTag,TagChange.SetProperty,TagChange.UpdateTagComment
Interface for supporting tag changes. This interface will be used to provide tag modification
operations for each tag.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA tag change to remove a property from the tag.static final classA tag change to rename the tag.static final classA tag change to set the property and value for the tag.static final classA tag change to update the tag comment. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic TagChangeremoveProperty(String property) Creates a new tag change to remove a property from the tag.static TagChangeCreates a new tag change to rename the tag.static TagChangesetProperty(String property, String value) Creates a new tag change to set the property and value for the tag.static TagChangeupdateComment(String newComment) Creates a new tag change to update the tag comment.
-
Method Details
-
rename
Creates a new tag change to rename the tag.- Parameters:
newName- The new name of the tag.- Returns:
- The tag change.
-
updateComment
Creates a new tag change to update the tag comment.- Parameters:
newComment- The new comment for the tag.- Returns:
- The tag change.
-
setProperty
Creates a new tag change to set the property and value for the tag.- Parameters:
property- The property name to set.value- The value to set the property to.- Returns:
- The tag change.
-
removeProperty
Creates a new tag change to remove a property from the tag.- Parameters:
property- The property name to remove.- Returns:
- The tag change.
-