Package org.apache.gravitino.file
Interface FilesetChange
- All Known Implementing Classes:
FilesetChange.RemoveComment,FilesetChange.RemoveProperty,FilesetChange.RenameFileset,FilesetChange.SetProperty,FilesetChange.UpdateFilesetComment
A fileset change is a change to a fileset. It can be used to rename a fileset, update the comment
of a fileset, set a property and value pair for a fileset, or remove a property from a fileset.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA fileset change to remove comment from the fileset.static final classA fileset change to remove a property from the fileset.static final classA fileset change to rename the fileset.static final classA fileset change to set the property and value for the fileset.static final classA fileset change to update the fileset comment. -
Method Summary
Modifier and TypeMethodDescriptionstatic FilesetChangeDeprecated.static FilesetChangeremoveProperty(String property) Creates a new fileset change to remove a property from the fileset.static FilesetChangeCreates a new fileset change to rename the fileset.static FilesetChangesetProperty(String property, String value) Creates a new fileset change to set the property and value for the fileset.static FilesetChangeupdateComment(String newComment) Creates a new fileset change to update the fileset comment.
-
Method Details
-
rename
Creates a new fileset change to rename the fileset.- Parameters:
newName- The new name of the fileset.- Returns:
- The fileset change.
-
updateComment
Creates a new fileset change to update the fileset comment.- Parameters:
newComment- The new comment for the fileset.- Returns:
- The fileset change.
-
setProperty
Creates a new fileset change to set the property and value for the fileset.- Parameters:
property- The property name to set.value- The value to set the property to.- Returns:
- The fileset change.
-
removeProperty
Creates a new fileset change to remove a property from the fileset.- Parameters:
property- The property name to remove.- Returns:
- The fileset change.
-
removeComment
Deprecated.UseupdateComment(String)with null value as the argument instead.Creates a new fileset change to remove comment from the fileset.- Returns:
- The fileset change.
-
updateComment(String)with null value as the argument instead.