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

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

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

Table.setTemporary介绍

暂无

代码示例

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

public void setTemporary(boolean isTemporary) {
 tTable.setTemporary(isTemporary);
}

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

table.setDataLocation(Warehouse.getDnsPath(new Path(SessionState.get().getTempTableSpace(),
  tableName), conf));
table.getTTable().setTemporary(true);
table.setStoredAsSubDirectories(false);
table.setInputFormatClass(format.getInputFormat());

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

table.setDataLocation(Warehouse.getDnsPath(new Path(SessionState.get().getTempTableSpace(),
 tableName), conf));
table.getTTable().setTemporary(true);
table.setStoredAsSubDirectories(false);
table.setInputFormatClass(format.getInputFormat());

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

public Table build(Configuration conf) throws MetaException {
 if (tableName == null) {
  throw new MetaException("You must set the table name");
 }
 if (ownerType == null) {
  ownerType = PrincipalType.USER;
 }
 if (owner == null) {
  try {
   owner = SecurityUtils.getUser();
  } catch (IOException e) {
   throw MetaStoreUtils.newMetaException(e);
  }
 }
 if (catName == null) catName = MetaStoreUtils.getDefaultCatalog(conf);
 Table t = new Table(tableName, dbName, owner, createTime, lastAccessTime, retention, buildSd(),
   partCols, tableParams, viewOriginalText, viewExpandedText, type);
 if (rewriteEnabled) t.setRewriteEnabled(true);
 if (temporary) t.setTemporary(temporary);
 t.setCatName(catName);
 if (!mvReferencedTables.isEmpty()) {
  CreationMetadata cm = new CreationMetadata(catName, dbName, tableName, mvReferencedTables);
  if (mvValidTxnList != null) cm.setValidTxnList(mvValidTxnList);
  t.setCreationMetadata(cm);
 }
 return t;
}

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

table.setFields(fields);
table.setDataLocation(tablePath);
table.getTTable().setTemporary(true);
table.setStoredAsSubDirectories(false);
table.setInputFormatClass(format.getInputFormat());

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

if (isTemporary) table.setTemporary(true);

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

tbl.getTTable().setTemporary(crtTbl.isTemporary());
tbl.getTTable().unsetId();

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

tbl.getTTable().setTemporary(crtTbl.isTemporary());

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

tbl.getTTable().setTemporary(isTemporary());

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

tbl.getTTable().setTemporary(isTemporary());

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

unsetTemporary();
} else {
 setTemporary((Boolean)value);

代码示例来源:origin: org.apache.hive/hive-standalone-metastore

public Table build(Configuration conf) throws MetaException {
 if (tableName == null) {
  throw new MetaException("You must set the table name");
 }
 if (owner == null) {
  try {
   owner = SecurityUtils.getUser();
  } catch (IOException e) {
   throw MetaStoreUtils.newMetaException(e);
  }
 }
 if (catName == null) catName = MetaStoreUtils.getDefaultCatalog(conf);
 Table t = new Table(tableName, dbName, owner, createTime, lastAccessTime, retention, buildSd(),
   partCols, tableParams, viewOriginalText, viewExpandedText, type);
 if (rewriteEnabled) t.setRewriteEnabled(true);
 if (temporary) t.setTemporary(temporary);
 t.setCatName(catName);
 if (!mvReferencedTables.isEmpty()) {
  CreationMetadata cm = new CreationMetadata(catName, dbName, tableName, mvReferencedTables);
  if (mvValidTxnList != null) cm.setValidTxnList(mvValidTxnList);
  t.setCreationMetadata(cm);
 }
 return t;
}

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

table.setFields(fields);
table.setDataLocation(tablePath);
table.getTTable().setTemporary(true);
table.setStoredAsSubDirectories(false);
table.setInputFormatClass(format.getInputFormat());

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

tbl.getTTable().setTemporary(crtTbl.isTemporary());

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

tbl.getTTable().setTemporary(crtTbl.isTemporary());

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

unsetTemporary();
} else {
 setTemporary((Boolean)value);

代码示例来源:origin: org.spark-project.hive/hive-metastore

unsetTemporary();
} else {
 setTemporary((Boolean)value);

代码示例来源:origin: org.apache.hive/hive-standalone-metastore

unsetTemporary();
} else {
 setTemporary((Boolean)value);

相关文章

Table类方法