Class NotificationEvent

java.lang.Object
io.trino.hive.thrift.metastore.NotificationEvent
All Implemented Interfaces:
Serializable, Cloneable, Comparable<NotificationEvent>, org.apache.thrift.TBase<NotificationEvent,NotificationEvent._Fields>, org.apache.thrift.TSerializable

@Generated("Autogenerated by Thrift Compiler (0.17.0)") public class NotificationEvent extends Object implements org.apache.thrift.TBase<NotificationEvent,NotificationEvent._Fields>, Serializable, Cloneable, Comparable<NotificationEvent>
See Also:
  • Field Details

  • Constructor Details

    • NotificationEvent

      public NotificationEvent()
    • NotificationEvent

      public NotificationEvent(long eventId, int eventTime, String eventType, String message)
    • NotificationEvent

      public NotificationEvent(NotificationEvent other)
      Performs a deep copy on other.
  • Method Details

    • deepCopy

      public NotificationEvent deepCopy()
      Specified by:
      deepCopy in interface org.apache.thrift.TBase<NotificationEvent,NotificationEvent._Fields>
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.thrift.TBase<NotificationEvent,NotificationEvent._Fields>
    • getEventId

      public long getEventId()
    • setEventId

      public NotificationEvent setEventId(long eventId)
    • unsetEventId

      public void unsetEventId()
    • isSetEventId

      public boolean isSetEventId()
      Returns true if field eventId is set (has been assigned a value) and false otherwise
    • setEventIdIsSet

      public void setEventIdIsSet(boolean value)
    • getEventTime

      public int getEventTime()
    • setEventTime

      public NotificationEvent setEventTime(int eventTime)
    • unsetEventTime

      public void unsetEventTime()
    • isSetEventTime

      public boolean isSetEventTime()
      Returns true if field eventTime is set (has been assigned a value) and false otherwise
    • setEventTimeIsSet

      public void setEventTimeIsSet(boolean value)
    • getEventType

      public String getEventType()
    • setEventType

      public NotificationEvent setEventType(String eventType)
    • unsetEventType

      public void unsetEventType()
    • isSetEventType

      public boolean isSetEventType()
      Returns true if field eventType is set (has been assigned a value) and false otherwise
    • setEventTypeIsSet

      public void setEventTypeIsSet(boolean value)
    • getDbName

      public String getDbName()
    • setDbName

      public NotificationEvent setDbName(String dbName)
    • unsetDbName

      public void unsetDbName()
    • isSetDbName

      public boolean isSetDbName()
      Returns true if field dbName is set (has been assigned a value) and false otherwise
    • setDbNameIsSet

      public void setDbNameIsSet(boolean value)
    • getTableName

      public String getTableName()
    • setTableName

      public NotificationEvent setTableName(String tableName)
    • unsetTableName

      public void unsetTableName()
    • isSetTableName

      public boolean isSetTableName()
      Returns true if field tableName is set (has been assigned a value) and false otherwise
    • setTableNameIsSet

      public void setTableNameIsSet(boolean value)
    • getMessage

      public String getMessage()
    • setMessage

      public NotificationEvent setMessage(String message)
    • unsetMessage

      public void unsetMessage()
    • isSetMessage

      public boolean isSetMessage()
      Returns true if field message is set (has been assigned a value) and false otherwise
    • setMessageIsSet

      public void setMessageIsSet(boolean value)
    • getMessageFormat

      public String getMessageFormat()
    • setMessageFormat

      public NotificationEvent setMessageFormat(String messageFormat)
    • unsetMessageFormat

      public void unsetMessageFormat()
    • isSetMessageFormat

      public boolean isSetMessageFormat()
      Returns true if field messageFormat is set (has been assigned a value) and false otherwise
    • setMessageFormatIsSet

      public void setMessageFormatIsSet(boolean value)
    • getCatName

      public String getCatName()
    • setCatName

      public NotificationEvent setCatName(String catName)
    • unsetCatName

      public void unsetCatName()
    • isSetCatName

      public boolean isSetCatName()
      Returns true if field catName is set (has been assigned a value) and false otherwise
    • setCatNameIsSet

      public void setCatNameIsSet(boolean value)
    • setFieldValue

      public void setFieldValue(NotificationEvent._Fields field, Object value)
      Specified by:
      setFieldValue in interface org.apache.thrift.TBase<NotificationEvent,NotificationEvent._Fields>
    • getFieldValue

      public Object getFieldValue(NotificationEvent._Fields field)
      Specified by:
      getFieldValue in interface org.apache.thrift.TBase<NotificationEvent,NotificationEvent._Fields>
    • isSet

      public boolean isSet(NotificationEvent._Fields field)
      Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
      Specified by:
      isSet in interface org.apache.thrift.TBase<NotificationEvent,NotificationEvent._Fields>
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(NotificationEvent that)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(NotificationEvent other)
      Specified by:
      compareTo in interface Comparable<NotificationEvent>
    • fieldForId

      public NotificationEvent._Fields fieldForId(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<NotificationEvent,NotificationEvent._Fields>
    • read

      public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
      Specified by:
      read in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • write

      public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      write in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException