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

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

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

Table.isSetTableType介绍

[英]Returns true if field tableType is set (has been assigned a value) and false otherwise
[中]如果设置了字段tableType(已赋值),则返回true,否则返回false

代码示例

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

  1. private static Boolean isViewTable(Table t) {
  2. return t.isSetTableType() ?
  3. t.getTableType().equals(TableType.VIRTUAL_VIEW.toString()) : null;
  4. }

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

  1. list.add(viewExpandedText);
  2. boolean present_tableType = true && (isSetTableType());
  3. list.add(present_tableType);
  4. if (present_tableType)

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

  1. lastComparison = Boolean.valueOf(isSetTableType()).compareTo(other.isSetTableType());
  2. if (lastComparison != 0) {
  3. return lastComparison;
  4. if (isSetTableType()) {
  5. lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableType, other.tableType);
  6. if (lastComparison != 0) {

代码示例来源:origin: apache/incubator-gobblin

  1. private static State getTableProps(Table table) {
  2. State tableProps = new State();
  3. for (Map.Entry<String, String> entry : table.getParameters().entrySet()) {
  4. tableProps.setProp(entry.getKey(), entry.getValue());
  5. }
  6. if (table.isSetCreateTime()) {
  7. tableProps.setProp(HiveConstants.CREATE_TIME, table.getCreateTime());
  8. }
  9. if (table.isSetLastAccessTime()) {
  10. tableProps.setProp(HiveConstants.LAST_ACCESS_TIME, table.getCreateTime());
  11. }
  12. if (table.isSetOwner()) {
  13. tableProps.setProp(HiveConstants.OWNER, table.getOwner());
  14. }
  15. if (table.isSetTableType()) {
  16. tableProps.setProp(HiveConstants.TABLE_TYPE, table.getTableType());
  17. }
  18. if (table.isSetRetention()) {
  19. tableProps.setProp(HiveConstants.RETENTION, table.getRetention());
  20. }
  21. return tableProps;
  22. }

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

  1. this.viewExpandedText = other.viewExpandedText;
  2. if (other.isSetTableType()) {
  3. this.tableType = other.tableType;

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

  1. optionals.set(11);
  2. if (struct.isSetTableType()) {
  3. optionals.set(12);
  4. oprot.writeString(struct.viewExpandedText);
  5. if (struct.isSetTableType()) {
  6. oprot.writeString(struct.tableType);

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

  1. boolean this_present_tableType = true && this.isSetTableType();
  2. boolean that_present_tableType = true && that.isSetTableType();
  3. if (this_present_tableType || that_present_tableType) {
  4. if (!(this_present_tableType && that_present_tableType))

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

  1. return isSetViewExpandedText();
  2. case TABLE_TYPE:
  3. return isSetTableType();
  4. case PRIVILEGES:
  5. return isSetPrivileges();

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

  1. if (ttable.isSetTableType() && ttable.getTableType().equalsIgnoreCase(TableType.EXTERNAL_TABLE.toString())){

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

  1. private static Boolean isViewTable(Table t) {
  2. return t.isSetTableType() ?
  3. t.getTableType().equals(TableType.VIRTUAL_VIEW.toString()) : null;
  4. }

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

  1. private static Boolean isViewTable(Table t) {
  2. return t.isSetTableType() ?
  3. t.getTableType().equals(TableType.VIRTUAL_VIEW.toString()) : null;
  4. }

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

  1. this.viewExpandedText = other.viewExpandedText;
  2. if (other.isSetTableType()) {
  3. this.tableType = other.tableType;

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

  1. this.viewExpandedText = other.viewExpandedText;
  2. if (other.isSetTableType()) {
  3. this.tableType = other.tableType;

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

  1. this.viewExpandedText = other.viewExpandedText;
  2. if (other.isSetTableType()) {
  3. this.tableType = other.tableType;

代码示例来源:origin: com.linkedin.gobblin/gobblin-hive-registration

  1. private static State getTableProps(Table table) {
  2. State tableProps = new State();
  3. for (Map.Entry<String, String> entry : table.getParameters().entrySet()) {
  4. tableProps.setProp(entry.getKey(), entry.getValue());
  5. }
  6. if (table.isSetCreateTime()) {
  7. tableProps.setProp(HiveConstants.CREATE_TIME, table.getCreateTime());
  8. }
  9. if (table.isSetLastAccessTime()) {
  10. tableProps.setProp(HiveConstants.LAST_ACCESS_TIME, table.getCreateTime());
  11. }
  12. if (table.isSetOwner()) {
  13. tableProps.setProp(HiveConstants.OWNER, table.getOwner());
  14. }
  15. if (table.isSetTableType()) {
  16. tableProps.setProp(HiveConstants.TABLE_TYPE, table.getTableType());
  17. }
  18. if (table.isSetRetention()) {
  19. tableProps.setProp(HiveConstants.RETENTION, table.getRetention());
  20. }
  21. return tableProps;
  22. }

代码示例来源:origin: org.apache.gobblin/gobblin-hive-registration

  1. private static State getTableProps(Table table) {
  2. State tableProps = new State();
  3. for (Map.Entry<String, String> entry : table.getParameters().entrySet()) {
  4. tableProps.setProp(entry.getKey(), entry.getValue());
  5. }
  6. if (table.isSetCreateTime()) {
  7. tableProps.setProp(HiveConstants.CREATE_TIME, table.getCreateTime());
  8. }
  9. if (table.isSetLastAccessTime()) {
  10. tableProps.setProp(HiveConstants.LAST_ACCESS_TIME, table.getCreateTime());
  11. }
  12. if (table.isSetOwner()) {
  13. tableProps.setProp(HiveConstants.OWNER, table.getOwner());
  14. }
  15. if (table.isSetTableType()) {
  16. tableProps.setProp(HiveConstants.TABLE_TYPE, table.getTableType());
  17. }
  18. if (table.isSetRetention()) {
  19. tableProps.setProp(HiveConstants.RETENTION, table.getRetention());
  20. }
  21. return tableProps;
  22. }

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

  1. return isSetViewExpandedText();
  2. case TABLE_TYPE:
  3. return isSetTableType();
  4. case PRIVILEGES:
  5. return isSetPrivileges();

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

  1. return isSetViewExpandedText();
  2. case TABLE_TYPE:
  3. return isSetTableType();
  4. case PRIVILEGES:
  5. return isSetPrivileges();

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

  1. return isSetViewExpandedText();
  2. case TABLE_TYPE:
  3. return isSetTableType();
  4. case PRIVILEGES:
  5. return isSetPrivileges();

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

  1. return isSetViewExpandedText();
  2. case TABLE_TYPE:
  3. return isSetTableType();
  4. case PRIVILEGES:
  5. return isSetPrivileges();

相关文章

Table类方法