本文整理了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
暂无
代码示例来源:origin: apache/hive
void dumpTable(String dbName, String tblName, String validTxnList, Path dbRoot, long lastReplId,
Hive hiveDb, HiveWrapper.Tuple<Table> tuple) throws Exception {
TableSpec tableSpec = new TableSpec(tuple.object);
TableExport.Paths exportPaths =
new TableExport.Paths(work.astRepresentationForErrorMsg, dbRoot, tblName, conf, true);
String distCpDoAsUser = conf.getVar(HiveConf.ConfVars.HIVE_DISTCP_DOAS_USER);
tuple.replicationSpec.setIsReplace(true); // by default for all other objects this is false
if (AcidUtils.isTransactionalTable(tableSpec.tableHandle)) {
tuple.replicationSpec.setValidTxnList(validTxnList);
tuple.replicationSpec.setValidWriteIdList(getValidWriteIdList(dbName, tblName, validTxnList));
// For transactional table, data would be valid snapshot for current txn and doesn't include data
// added/modified by concurrent txns which are later than current txn. So, need to set last repl Id of this table
// as bootstrap dump's last repl Id.
tuple.replicationSpec.setCurrentReplicationState(String.valueOf(lastReplId));
// For now we do not replicate stats for ACID table. So, wipe out column stats if any.
tableSpec.tableHandle.getTTable().unsetColStats();
}
MmContext mmCtx = MmContext.createIfNeeded(tableSpec.tableHandle);
new TableExport(
exportPaths, tableSpec, tuple.replicationSpec, hiveDb, distCpDoAsUser, conf, mmCtx).write();
replLogger.tableLog(tblName, tableSpec.tableHandle.getTableType());
}
代码示例来源:origin: apache/hive
tblObj.unsetColStats();
代码示例来源:origin: apache/hive
table.getTTable().unsetColStats();
代码示例来源:origin: apache/hive
unsetColStats();
} else {
setColStats((ColumnStatistics)value);
内容来源于网络,如有侵权,请联系作者删除!