Package org.apache.gravitino
Interface MetalakeChange
- All Known Implementing Classes:
MetalakeChange.RemoveProperty,MetalakeChange.RenameMetalake,MetalakeChange.SetProperty,MetalakeChange.UpdateMetalakeComment
A metalake change is a change to a metalake. It can be used to rename a metalake, update the
comment of a metalake, set a property and value pair for a metalake, or remove a property from a
metalake.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA metalake change to remove a property from the metalake.static final classA metalake change to rename the metalake.static final classA metalake change to set a property and value pair for the metalake.static final classA metalake change to update the metalake comment. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic MetalakeChangeremoveProperty(String property) Creates a new metalake change to remove a property from the metalake.static MetalakeChangeCreates a new metalake change to rename the metalake.static MetalakeChangesetProperty(String property, String value) Creates a new metalake change to set a property and value pair for the metalake.static MetalakeChangeupdateComment(String newComment) Creates a new metalake change to update the metalake comment.
-
Method Details
-
rename
Creates a new metalake change to rename the metalake.- Parameters:
newName- The New name of the metalake.- Returns:
- The metalake change.
-
updateComment
Creates a new metalake change to update the metalake comment.- Parameters:
newComment- The new comment of the metalake.- Returns:
- The metalake change.
-
setProperty
Creates a new metalake change to set a property and value pair for the metalake.- Parameters:
property- The property name to set.value- The value to set the property to.- Returns:
- The metalake change.
-
removeProperty
Creates a new metalake change to remove a property from the metalake.- Parameters:
property- The property name to remove.- Returns:
- The metalake change.
-