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

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

本文整理了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

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);

相关文章

Table类方法