Java Code Examples for org.apache.hadoop.hive.metastore.api.NotificationEventResponse

The following examples show how to use org.apache.hadoop.hive.metastore.api.NotificationEventResponse. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
public NotificationEventResponse getNextNotification(
    long lastEventId,
    int maxEvents,
    IMetaStoreClient.NotificationFilter notificationFilter
) throws TException {
  throw new UnsupportedOperationException("getNextNotification is not supported");
}
 
Example 2
Source Project: waggle-dance   Source File: FederatedHMSHandlerTest.java    License: Apache License 2.0 5 votes vote down vote up
@Test
public void get_next_notification() throws TException {
  NotificationEventRequest request = new NotificationEventRequest();
  NotificationEventResponse expected = new NotificationEventResponse();
  when(primaryClient.get_next_notification(request)).thenReturn(expected);
  NotificationEventResponse result = handler.get_next_notification(request);
  assertThat(result, is(expected));
}
 
Example 3
@Override
public NotificationEventResponse getNextNotification(
    long lastEventId, int maxEvents, NotificationFilter notificationFilter) throws TException {
  return glueMetastoreClientDelegate.getNextNotification(lastEventId, maxEvents, notificationFilter);
}
 
Example 4
@Override
public NotificationEventResponse getNextNotification(
    long lastEventId, int maxEvents, NotificationFilter notificationFilter) throws TException {
  return glueMetastoreClientDelegate.getNextNotification(lastEventId, maxEvents, notificationFilter);
}
 
Example 5
Source Project: waggle-dance   Source File: FederatedHMSHandler.java    License: Apache License 2.0 4 votes vote down vote up
@Override
@Loggable(value = Loggable.DEBUG, skipResult = true, name = INVOCATION_LOG_NAME)
public NotificationEventResponse get_next_notification(NotificationEventRequest rqst) throws TException {
  return getPrimaryClient().get_next_notification(rqst);
}
 
Example 6
Source Project: metacat   Source File: CatalogThriftHiveMetastore.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public NotificationEventResponse get_next_notification(final NotificationEventRequest rqst) throws TException {
    throw unimplemented("get_next_notification", new Object[]{rqst});
}