org.apache.hadoop.hive.metastore.api.FireEventResponse Java Examples

The following examples show how to use org.apache.hadoop.hive.metastore.api.FireEventResponse. 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
Source File: FederatedHMSHandlerTest.java    From waggle-dance with Apache License 2.0 5 votes vote down vote up
@Test
public void fire_listener_event() throws TException {
  FireEventRequest request = new FireEventRequest();
  request.setDbName(DB_P);
  FireEventRequest inboundRequest = new FireEventRequest();
  FireEventResponse expected = new FireEventResponse();
  when(primaryMapping.transformInboundFireEventRequest(request)).thenReturn(inboundRequest);
  when(primaryClient.fire_listener_event(inboundRequest)).thenReturn(expected);
  FireEventResponse result = handler.fire_listener_event(request);
  assertThat(result, is(expected));
}
 
Example #2
Source File: GlueMetastoreClientDelegate.java    From aws-glue-data-catalog-client-for-apache-hive-metastore with Apache License 2.0 4 votes vote down vote up
public FireEventResponse fireListenerEvent(FireEventRequest fireEventRequest) throws TException {
  throw new UnsupportedOperationException("fireListenerEvent is not supported");
}
 
Example #3
Source File: AWSCatalogMetastoreClient.java    From aws-glue-data-catalog-client-for-apache-hive-metastore with Apache License 2.0 4 votes vote down vote up
@Override
public FireEventResponse fireListenerEvent(FireEventRequest fireEventRequest) throws TException {
  return glueMetastoreClientDelegate.fireListenerEvent(fireEventRequest);
}
 
Example #4
Source File: AWSCatalogMetastoreClient.java    From aws-glue-data-catalog-client-for-apache-hive-metastore with Apache License 2.0 4 votes vote down vote up
@Override
public FireEventResponse fireListenerEvent(FireEventRequest fireEventRequest) throws TException {
  return glueMetastoreClientDelegate.fireListenerEvent(fireEventRequest);
}
 
Example #5
Source File: FederatedHMSHandler.java    From waggle-dance with Apache License 2.0 4 votes vote down vote up
@Override
@Loggable(value = Loggable.DEBUG, skipResult = true, name = INVOCATION_LOG_NAME)
public FireEventResponse fire_listener_event(FireEventRequest rqst) throws TException {
  DatabaseMapping mapping = databaseMappingService.databaseMapping(rqst.getDbName());
  return mapping.getClient().fire_listener_event(mapping.transformInboundFireEventRequest(rqst));
}
 
Example #6
Source File: CatalogThriftHiveMetastore.java    From metacat with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public FireEventResponse fire_listener_event(final FireEventRequest rqst) throws TException {
    throw unimplemented("fire_listener_event", new Object[]{rqst});
}