本文整理了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
暂无
代码示例来源:origin: apache/hive
public ColumnStatistics getColStats() {
return tTable.isSetColStats() ? tTable.getColStats() : null;
}
代码示例来源:origin: apache/hive
private void compareStatsForTable(String catName, String dbName, String tableName,
Map<String, Column> colMap) throws TException {
List<ColumnStatisticsObj> objs = catName.equals(NO_CAT) ?
client.getTableColumnStatistics(dbName, tableName, new ArrayList<>(colMap.keySet())) :
client.getTableColumnStatistics(catName, dbName, tableName, new ArrayList<>(colMap.keySet()));
compareStatsForOneTableOrPartition(objs, 0, colMap);
// Test the statistics obtained through getTable call.
Table table = catName.equals(NO_CAT) ?
client.getTable(dbName, tableName, true) :
client.getTable(catName, dbName, tableName, null, true);
Assert.assertTrue(table.isSetColStats());
compareStatsForOneTableOrPartition(table.getColStats().getStatsObj(), 0, colMap);
// Test that getTable call doesn't get the statistics when not explicitly requested.
table = catName.equals(NO_CAT) ?
client.getTable(dbName, tableName, false) :
client.getTable(catName, dbName, tableName, null, false);
Assert.assertFalse(table.isSetColStats());
}
代码示例来源:origin: apache/hive
updateTableColumnStatsInternal(tbl.getColStats(), null, tbl.getWriteId());
代码示例来源:origin: apache/hive
return getColStats();
内容来源于网络,如有侵权,请联系作者删除!