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