org.apache.hadoop.hive.metastore.api.Table.getColStats()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(115)

本文整理了Java中org.apache.hadoop.hive.metastore.api.Table.getColStats()方法的一些代码示例,展示了Table.getColStats()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.getColStats()方法的具体详情如下:
包路径:org.apache.hadoop.hive.metastore.api.Table
类名称:Table
方法名:getColStats

Table.getColStats介绍

暂无

代码示例

代码示例来源:origin: apache/hive

  1. public ColumnStatistics getColStats() {
  2. return tTable.isSetColStats() ? tTable.getColStats() : null;
  3. }

代码示例来源:origin: apache/hive

  1. private void compareStatsForTable(String catName, String dbName, String tableName,
  2. Map<String, Column> colMap) throws TException {
  3. List<ColumnStatisticsObj> objs = catName.equals(NO_CAT) ?
  4. client.getTableColumnStatistics(dbName, tableName, new ArrayList<>(colMap.keySet())) :
  5. client.getTableColumnStatistics(catName, dbName, tableName, new ArrayList<>(colMap.keySet()));
  6. compareStatsForOneTableOrPartition(objs, 0, colMap);
  7. // Test the statistics obtained through getTable call.
  8. Table table = catName.equals(NO_CAT) ?
  9. client.getTable(dbName, tableName, true) :
  10. client.getTable(catName, dbName, tableName, null, true);
  11. Assert.assertTrue(table.isSetColStats());
  12. compareStatsForOneTableOrPartition(table.getColStats().getStatsObj(), 0, colMap);
  13. // Test that getTable call doesn't get the statistics when not explicitly requested.
  14. table = catName.equals(NO_CAT) ?
  15. client.getTable(dbName, tableName, false) :
  16. client.getTable(catName, dbName, tableName, null, false);
  17. Assert.assertFalse(table.isSetColStats());
  18. }

代码示例来源:origin: apache/hive

  1. updateTableColumnStatsInternal(tbl.getColStats(), null, tbl.getWriteId());

代码示例来源:origin: apache/hive

  1. return getColStats();

相关文章

Table类方法