lastComparison = Boolean.valueOf(isSetEventId()).compareTo(other.isSetEventId()); if (lastComparison != 0) { return lastComparison; if (isSetEventId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventId, other.eventId); if (lastComparison != 0) {
if (event.isSetEventId()) { listenerEvent.putParameter( MetaStoreEventListenerConstants.DB_NOTIFICATION_EVENT_ID_KEY_NAME,
/** * Process this notification by adding it to metastore DB. * * @param event NotificationEvent is the object written to the metastore DB. * @param listenerEvent ListenerEvent (from which NotificationEvent was based) used only to set the * DB_NOTIFICATION_EVENT_ID_KEY_NAME for future reference by other listeners. */ private void process(NotificationEvent event, ListenerEvent listenerEvent) throws MetaException { event.setMessageFormat(msgEncoder.getMessageFormat()); LOG.debug("DbNotificationListener: Processing : {}:{}", event.getEventId(), event.getMessage()); HMSHandler.getMSForConf(conf).addNotificationEvent(event); // Set the DB_NOTIFICATION_EVENT_ID for future reference by other listeners. if (event.isSetEventId()) { listenerEvent.putParameter( MetaStoreEventListenerConstants.DB_NOTIFICATION_EVENT_ID_KEY_NAME, Long.toString(event.getEventId())); } }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EVENT_ID: return isSetEventId(); case EVENT_TIME: return isSetEventTime(); case EVENT_TYPE: return isSetEventType(); case DB_NAME: return isSetDbName(); case TABLE_NAME: return isSetTableName(); case MESSAGE: return isSetMessage(); case MESSAGE_FORMAT: return isSetMessageFormat(); case CAT_NAME: return isSetCatName(); } throw new IllegalStateException(); }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetEventId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'eventId' is unset! Struct:" + toString()); } if (!isSetEventTime()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'eventTime' is unset! Struct:" + toString()); } if (!isSetEventType()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'eventType' is unset! Struct:" + toString()); } if (!isSetMessage()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'message' is unset! Struct:" + toString()); } // check for sub-struct validity }
NotificationEvent typedOther = (NotificationEvent)other; lastComparison = Boolean.valueOf(isSetEventId()).compareTo(typedOther.isSetEventId()); if (lastComparison != 0) { return lastComparison; if (isSetEventId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventId, typedOther.eventId); if (lastComparison != 0) {
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EVENT_ID: return isSetEventId(); case EVENT_TIME: return isSetEventTime(); case EVENT_TYPE: return isSetEventType(); case DB_NAME: return isSetDbName(); case TABLE_NAME: return isSetTableName(); case MESSAGE: return isSetMessage(); } throw new IllegalStateException(); }
NotificationEvent typedOther = (NotificationEvent)other; lastComparison = Boolean.valueOf(isSetEventId()).compareTo(typedOther.isSetEventId()); if (lastComparison != 0) { return lastComparison; if (isSetEventId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventId, typedOther.eventId); if (lastComparison != 0) {
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EVENT_ID: return isSetEventId(); case EVENT_TIME: return isSetEventTime(); case EVENT_TYPE: return isSetEventType(); case DB_NAME: return isSetDbName(); case TABLE_NAME: return isSetTableName(); case MESSAGE: return isSetMessage(); } throw new IllegalStateException(); }
if (event.isSetEventId()) { listenerEvent.putParameter( MetaStoreEventListenerConstants.DB_NOTIFICATION_EVENT_ID_KEY_NAME,
/** * Process this notification by adding it to metastore DB. * * @param event NotificationEvent is the object written to the metastore DB. * @param listenerEvent ListenerEvent (from which NotificationEvent was based) used only to set the * DB_NOTIFICATION_EVENT_ID_KEY_NAME for future reference by other listeners. */ private void process(NotificationEvent event, ListenerEvent listenerEvent) throws MetaException { event.setMessageFormat(msgFactory.getMessageFormat()); LOG.debug("DbNotificationListener: Processing : {}:{}", event.getEventId(), event.getMessage()); HMSHandler.getMSForConf(conf).addNotificationEvent(event); // Set the DB_NOTIFICATION_EVENT_ID for future reference by other listeners. if (event.isSetEventId()) { listenerEvent.putParameter( MetaStoreEventListenerConstants.DB_NOTIFICATION_EVENT_ID_KEY_NAME, Long.toString(event.getEventId())); } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetEventId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'eventId' is unset! Struct:" + toString()); } if (!isSetEventTime()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'eventTime' is unset! Struct:" + toString()); } if (!isSetEventType()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'eventType' is unset! Struct:" + toString()); } if (!isSetMessage()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'message' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetEventId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'eventId' is unset! Struct:" + toString()); } if (!isSetEventTime()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'eventTime' is unset! Struct:" + toString()); } if (!isSetEventType()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'eventType' is unset! Struct:" + toString()); } if (!isSetMessage()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'message' is unset! Struct:" + toString()); } // check for sub-struct validity }