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 class
A fileset change to remove comment from the fileset.static final class
A fileset change to remove a property from the fileset.static final class
A fileset change to rename the fileset.static final class
A fileset change to set the property and value for the fileset.static final class
A fileset change to update the fileset comment. -
Method Summary
Modifier and TypeMethodDescriptionstatic FilesetChange
Deprecated.static FilesetChange
removeProperty
(String property) Creates a new fileset change to remove a property from the fileset.static FilesetChange
Creates a new fileset change to rename the fileset.static FilesetChange
setProperty
(String property, String value) Creates a new fileset change to set the property and value for the fileset.static FilesetChange
updateComment
(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.