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

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

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

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

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

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

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

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

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

  1. public Table build(Configuration conf) throws MetaException {
  2. if (tableName == null) {
  3. throw new MetaException("You must set the table name");
  4. }
  5. if (ownerType == null) {
  6. ownerType = PrincipalType.USER;
  7. }
  8. if (owner == null) {
  9. try {
  10. owner = SecurityUtils.getUser();
  11. } catch (IOException e) {
  12. throw MetaStoreUtils.newMetaException(e);
  13. }
  14. }
  15. if (catName == null) catName = MetaStoreUtils.getDefaultCatalog(conf);
  16. Table t = new Table(tableName, dbName, owner, createTime, lastAccessTime, retention, buildSd(),
  17. partCols, tableParams, viewOriginalText, viewExpandedText, type);
  18. if (rewriteEnabled) t.setRewriteEnabled(true);
  19. if (temporary) t.setTemporary(temporary);
  20. t.setCatName(catName);
  21. if (!mvReferencedTables.isEmpty()) {
  22. CreationMetadata cm = new CreationMetadata(catName, dbName, tableName, mvReferencedTables);
  23. if (mvValidTxnList != null) cm.setValidTxnList(mvValidTxnList);
  24. t.setCreationMetadata(cm);
  25. }
  26. return t;
  27. }

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

  1. table.setFields(fields);
  2. table.setDataLocation(tablePath);
  3. table.getTTable().setTemporary(true);
  4. table.setStoredAsSubDirectories(false);
  5. table.setInputFormatClass(format.getInputFormat());

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

  1. if (isTemporary) table.setTemporary(true);

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

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

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

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

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

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

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

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

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

  1. unsetTemporary();
  2. } else {
  3. setTemporary((Boolean)value);

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

  1. public Table build(Configuration conf) throws MetaException {
  2. if (tableName == null) {
  3. throw new MetaException("You must set the table name");
  4. }
  5. if (owner == null) {
  6. try {
  7. owner = SecurityUtils.getUser();
  8. } catch (IOException e) {
  9. throw MetaStoreUtils.newMetaException(e);
  10. }
  11. }
  12. if (catName == null) catName = MetaStoreUtils.getDefaultCatalog(conf);
  13. Table t = new Table(tableName, dbName, owner, createTime, lastAccessTime, retention, buildSd(),
  14. partCols, tableParams, viewOriginalText, viewExpandedText, type);
  15. if (rewriteEnabled) t.setRewriteEnabled(true);
  16. if (temporary) t.setTemporary(temporary);
  17. t.setCatName(catName);
  18. if (!mvReferencedTables.isEmpty()) {
  19. CreationMetadata cm = new CreationMetadata(catName, dbName, tableName, mvReferencedTables);
  20. if (mvValidTxnList != null) cm.setValidTxnList(mvValidTxnList);
  21. t.setCreationMetadata(cm);
  22. }
  23. return t;
  24. }

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

  1. table.setFields(fields);
  2. table.setDataLocation(tablePath);
  3. table.getTTable().setTemporary(true);
  4. table.setStoredAsSubDirectories(false);
  5. table.setInputFormatClass(format.getInputFormat());

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

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

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

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

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

  1. unsetTemporary();
  2. } else {
  3. setTemporary((Boolean)value);

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

  1. unsetTemporary();
  2. } else {
  3. setTemporary((Boolean)value);

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

  1. unsetTemporary();
  2. } else {
  3. setTemporary((Boolean)value);

相关文章

Table类方法