org.apache.hadoop.hive.ql.metadata.Hive.loadTable()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(241)

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

Hive.loadTable介绍

[英]Load a directory into a Hive Table. - Alters existing content of table with the contents of loadPath. - If table does not exist - an exception is thrown - files in loadPath are moved into Hive. But the directory itself is not removed.
[中]将目录加载到配置单元表中。-使用loadPath的内容更改表的现有内容。-若表不存在—将引发异常—加载路径中的文件将移动到配置单元中。但目录本身并没有被删除。

代码示例

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

db.loadTable(tbd.getSourcePath(), tbd.getTable().getTableName(), tbd.getLoadFileType(),
    work.isSrcLocal(), isSkewedStoredAsDirs(tbd), isFullAcidOp,
    resetStatisticsProps(table), tbd.getWriteId(), tbd.getStmtId(),

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

if (tbd.getPartitionSpec().size() == 0) {
 dc = new DataContainer(table.getTTable());
 db.loadTable(tbd.getSourcePath(), tbd.getTable().getTableName(), tbd.getReplace(),
   work.isSrcLocal(), isSkewedStoredAsDirs(tbd),
   work.getLoadTableWork().getWriteType() != AcidUtils.Operation.NOT_ACID,

代码示例来源:origin: org.apache.hadoop.hive/hive-exec

if (tbd.getPartitionSpec().size() == 0) {
 dc = new DataContainer(table.getTTable());
 db.loadTable(new Path(tbd.getSourceDir()), tbd.getTable()
   .getTableName(), tbd.getReplace(), tbd.getHoldDDLTime());
 if (work.getOutputs() != null) {

代码示例来源:origin: com.facebook.presto.hive/hive-apache

if (tbd.getPartitionSpec().size() == 0) {
 dc = new DataContainer(table.getTTable());
 db.loadTable(tbd.getSourcePath(), tbd.getTable()
   .getTableName(), tbd.getReplace(), tbd.getHoldDDLTime(), work.isSrcLocal(),
   isSkewedStoredAsDirs(tbd),

相关文章

微信公众号

最新文章

更多

Hive类方法