本文整理了Java中org.apache.hadoop.hive.metastore.api.Table.setColStats()
方法的一些代码示例,展示了Table.setColStats()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setColStats()
方法的具体详情如下:
包路径:org.apache.hadoop.hive.metastore.api.Table
类名称:Table
方法名:setColStats
暂无
代码示例来源:origin: apache/hive
public Table get_table_core(final String catName,
final String dbname,
final String name,
final String writeIdList,
boolean getColumnStats)
throws MetaException, NoSuchObjectException {
Table t = null;
try {
t = getMS().getTable(catName, dbname, name, writeIdList);
if (t == null) {
throw new NoSuchObjectException(TableName.getQualified(catName, dbname, name) +
" table not found");
}
// If column statistics was requested and is valid fetch it.
if (getColumnStats) {
ColumnStatistics colStats = getMS().getTableColumnStatistics(catName, dbname, name,
StatsSetupConst.getColumnsHavingStats(t.getParameters()), writeIdList);
if (colStats != null) {
t.setColStats(colStats);
}
}
} catch (Exception e) {
throwMetaException(e);
}
return t;
}
代码示例来源:origin: apache/hive
colStatsDesc.setDbName(getTableName());
colStatsDesc.setDbName(getDatabaseName());
tbl.getTTable().setColStats(new ColumnStatistics(colStatsDesc, colStats.getStatsObj()));
代码示例来源:origin: apache/hive
unsetColStats();
} else {
setColStats((ColumnStatistics)value);
内容来源于网络,如有侵权,请联系作者删除!