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

The following examples show how to use org.apache.hadoop.hive.metastore.api.GetOpenTxnsInfoResponse. 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 get_open_txns_info() throws TException {
  GetOpenTxnsInfoResponse expected = new GetOpenTxnsInfoResponse();
  when(primaryClient.get_open_txns_info()).thenReturn(expected);
  GetOpenTxnsInfoResponse result = handler.get_open_txns_info();
  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 GetOpenTxnsInfoResponse showTxns() throws TException {
  throw new UnsupportedOperationException("showTxns 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 GetOpenTxnsInfoResponse showTxns() throws TException {
  return glueMetastoreClientDelegate.showTxns();
}
 
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 GetOpenTxnsInfoResponse showTxns() throws TException {
  return glueMetastoreClientDelegate.showTxns();
}
 
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 GetOpenTxnsInfoResponse get_open_txns_info() throws TException {
  return getPrimaryClient().get_open_txns_info();
}
 
Example #6
Source File: CatalogThriftHiveMetastore.java    From metacat with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public GetOpenTxnsInfoResponse get_open_txns_info() throws TException {
    throw unimplemented("get_open_txns_info", new Object[]{});
}