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