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

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

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

Table.unsetColStats介绍

暂无

代码示例

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

  1. void dumpTable(String dbName, String tblName, String validTxnList, Path dbRoot, long lastReplId,
  2. Hive hiveDb, HiveWrapper.Tuple<Table> tuple) throws Exception {
  3. TableSpec tableSpec = new TableSpec(tuple.object);
  4. TableExport.Paths exportPaths =
  5. new TableExport.Paths(work.astRepresentationForErrorMsg, dbRoot, tblName, conf, true);
  6. String distCpDoAsUser = conf.getVar(HiveConf.ConfVars.HIVE_DISTCP_DOAS_USER);
  7. tuple.replicationSpec.setIsReplace(true); // by default for all other objects this is false
  8. if (AcidUtils.isTransactionalTable(tableSpec.tableHandle)) {
  9. tuple.replicationSpec.setValidTxnList(validTxnList);
  10. tuple.replicationSpec.setValidWriteIdList(getValidWriteIdList(dbName, tblName, validTxnList));
  11. // For transactional table, data would be valid snapshot for current txn and doesn't include data
  12. // added/modified by concurrent txns which are later than current txn. So, need to set last repl Id of this table
  13. // as bootstrap dump's last repl Id.
  14. tuple.replicationSpec.setCurrentReplicationState(String.valueOf(lastReplId));
  15. // For now we do not replicate stats for ACID table. So, wipe out column stats if any.
  16. tableSpec.tableHandle.getTTable().unsetColStats();
  17. }
  18. MmContext mmCtx = MmContext.createIfNeeded(tableSpec.tableHandle);
  19. new TableExport(
  20. exportPaths, tableSpec, tuple.replicationSpec, hiveDb, distCpDoAsUser, conf, mmCtx).write();
  21. replLogger.tableLog(tblName, tableSpec.tableHandle.getTableType());
  22. }

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

  1. tblObj.unsetColStats();

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

  1. table.getTTable().unsetColStats();

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

  1. unsetColStats();
  2. } else {
  3. setColStats((ColumnStatistics)value);

相关文章

Table类方法