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

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