org.apache.hadoop.hive.metastore.api.FireEventRequest Java Examples
The following examples show how to use
org.apache.hadoop.hive.metastore.api.FireEventRequest.
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: DatabaseMappingImplTest.java From waggle-dance with Apache License 2.0 | 5 votes |
@Test public void transformInboundFireEventRequest() throws Exception { FireEventRequest fireEventRequest = new FireEventRequest(); fireEventRequest.setDbName(DB_NAME); FireEventRequest result = databaseMapping.transformInboundFireEventRequest(fireEventRequest); assertThat(result, is(sameInstance(fireEventRequest))); assertThat(result.getDbName(), is(IN_DB_NAME)); }
Example #2
Source File: FederatedHMSHandlerTest.java From waggle-dance with Apache License 2.0 | 5 votes |
@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 #3
Source File: GlueMetastoreClientDelegate.java From aws-glue-data-catalog-client-for-apache-hive-metastore with Apache License 2.0 | 4 votes |
public FireEventResponse fireListenerEvent(FireEventRequest fireEventRequest) throws TException { throw new UnsupportedOperationException("fireListenerEvent is not supported"); }
Example #4
Source File: AWSCatalogMetastoreClient.java From aws-glue-data-catalog-client-for-apache-hive-metastore with Apache License 2.0 | 4 votes |
@Override public FireEventResponse fireListenerEvent(FireEventRequest fireEventRequest) throws TException { return glueMetastoreClientDelegate.fireListenerEvent(fireEventRequest); }
Example #5
Source File: AWSCatalogMetastoreClient.java From aws-glue-data-catalog-client-for-apache-hive-metastore with Apache License 2.0 | 4 votes |
@Override public FireEventResponse fireListenerEvent(FireEventRequest fireEventRequest) throws TException { return glueMetastoreClientDelegate.fireListenerEvent(fireEventRequest); }
Example #6
Source File: DatabaseMappingImpl.java From waggle-dance with Apache License 2.0 | 4 votes |
@Override public FireEventRequest transformInboundFireEventRequest(FireEventRequest rqst) { rqst.setDbName(metaStoreMapping.transformInboundDatabaseName(rqst.getDbName())); return rqst; }
Example #7
Source File: IdentityMapping.java From waggle-dance with Apache License 2.0 | 4 votes |
@Override public FireEventRequest transformInboundFireEventRequest(FireEventRequest rqst) { return rqst; }
Example #8
Source File: FederatedHMSHandler.java From waggle-dance with Apache License 2.0 | 4 votes |
@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 #9
Source File: IdentityMappingTest.java From waggle-dance with Apache License 2.0 | 4 votes |
@Test public void transformInboundFireEventRequest() throws Exception { FireEventRequest fireEventRequest = new FireEventRequest(); FireEventRequest result = databaseMapping.transformInboundFireEventRequest(fireEventRequest); assertThat(result, is(sameInstance(fireEventRequest))); }
Example #10
Source File: CatalogThriftHiveMetastore.java From metacat with Apache License 2.0 | 4 votes |
/** * {@inheritDoc} */ @Override public FireEventResponse fire_listener_event(final FireEventRequest rqst) throws TException { throw unimplemented("fire_listener_event", new Object[]{rqst}); }
Example #11
Source File: DatabaseMapping.java From waggle-dance with Apache License 2.0 | votes |
FireEventRequest transformInboundFireEventRequest(FireEventRequest request);