本文整理了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
[英]Returns true if field tableType is set (has been assigned a value) and false otherwise
[中]如果设置了字段tableType(已赋值),则返回true,否则返回false
代码示例来源:origin: apache/hive
private static Boolean isViewTable(Table t) {
return t.isSetTableType() ?
t.getTableType().equals(TableType.VIRTUAL_VIEW.toString()) : null;
}
代码示例来源:origin: apache/hive
list.add(viewExpandedText);
boolean present_tableType = true && (isSetTableType());
list.add(present_tableType);
if (present_tableType)
代码示例来源:origin: apache/hive
lastComparison = Boolean.valueOf(isSetTableType()).compareTo(other.isSetTableType());
if (lastComparison != 0) {
return lastComparison;
if (isSetTableType()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableType, other.tableType);
if (lastComparison != 0) {
代码示例来源:origin: apache/incubator-gobblin
private static State getTableProps(Table table) {
State tableProps = new State();
for (Map.Entry<String, String> entry : table.getParameters().entrySet()) {
tableProps.setProp(entry.getKey(), entry.getValue());
}
if (table.isSetCreateTime()) {
tableProps.setProp(HiveConstants.CREATE_TIME, table.getCreateTime());
}
if (table.isSetLastAccessTime()) {
tableProps.setProp(HiveConstants.LAST_ACCESS_TIME, table.getCreateTime());
}
if (table.isSetOwner()) {
tableProps.setProp(HiveConstants.OWNER, table.getOwner());
}
if (table.isSetTableType()) {
tableProps.setProp(HiveConstants.TABLE_TYPE, table.getTableType());
}
if (table.isSetRetention()) {
tableProps.setProp(HiveConstants.RETENTION, table.getRetention());
}
return tableProps;
}
代码示例来源:origin: apache/hive
this.viewExpandedText = other.viewExpandedText;
if (other.isSetTableType()) {
this.tableType = other.tableType;
代码示例来源:origin: apache/hive
optionals.set(11);
if (struct.isSetTableType()) {
optionals.set(12);
oprot.writeString(struct.viewExpandedText);
if (struct.isSetTableType()) {
oprot.writeString(struct.tableType);
代码示例来源:origin: apache/hive
boolean this_present_tableType = true && this.isSetTableType();
boolean that_present_tableType = true && that.isSetTableType();
if (this_present_tableType || that_present_tableType) {
if (!(this_present_tableType && that_present_tableType))
代码示例来源:origin: apache/hive
return isSetViewExpandedText();
case TABLE_TYPE:
return isSetTableType();
case PRIVILEGES:
return isSetPrivileges();
代码示例来源:origin: apache/drill
if (ttable.isSetTableType() && ttable.getTableType().equalsIgnoreCase(TableType.EXTERNAL_TABLE.toString())){
代码示例来源:origin: org.spark-project.hive/hive-metastore
private static Boolean isViewTable(Table t) {
return t.isSetTableType() ?
t.getTableType().equals(TableType.VIRTUAL_VIEW.toString()) : null;
}
代码示例来源:origin: com.facebook.presto.hive/hive-apache
private static Boolean isViewTable(Table t) {
return t.isSetTableType() ?
t.getTableType().equals(TableType.VIRTUAL_VIEW.toString()) : null;
}
代码示例来源:origin: org.apache.hadoop.hive/hive-metastore
this.viewExpandedText = other.viewExpandedText;
if (other.isSetTableType()) {
this.tableType = other.tableType;
代码示例来源:origin: org.spark-project.hive/hive-metastore
this.viewExpandedText = other.viewExpandedText;
if (other.isSetTableType()) {
this.tableType = other.tableType;
代码示例来源:origin: com.facebook.presto.hive/hive-apache
this.viewExpandedText = other.viewExpandedText;
if (other.isSetTableType()) {
this.tableType = other.tableType;
代码示例来源:origin: com.linkedin.gobblin/gobblin-hive-registration
private static State getTableProps(Table table) {
State tableProps = new State();
for (Map.Entry<String, String> entry : table.getParameters().entrySet()) {
tableProps.setProp(entry.getKey(), entry.getValue());
}
if (table.isSetCreateTime()) {
tableProps.setProp(HiveConstants.CREATE_TIME, table.getCreateTime());
}
if (table.isSetLastAccessTime()) {
tableProps.setProp(HiveConstants.LAST_ACCESS_TIME, table.getCreateTime());
}
if (table.isSetOwner()) {
tableProps.setProp(HiveConstants.OWNER, table.getOwner());
}
if (table.isSetTableType()) {
tableProps.setProp(HiveConstants.TABLE_TYPE, table.getTableType());
}
if (table.isSetRetention()) {
tableProps.setProp(HiveConstants.RETENTION, table.getRetention());
}
return tableProps;
}
代码示例来源:origin: org.apache.gobblin/gobblin-hive-registration
private static State getTableProps(Table table) {
State tableProps = new State();
for (Map.Entry<String, String> entry : table.getParameters().entrySet()) {
tableProps.setProp(entry.getKey(), entry.getValue());
}
if (table.isSetCreateTime()) {
tableProps.setProp(HiveConstants.CREATE_TIME, table.getCreateTime());
}
if (table.isSetLastAccessTime()) {
tableProps.setProp(HiveConstants.LAST_ACCESS_TIME, table.getCreateTime());
}
if (table.isSetOwner()) {
tableProps.setProp(HiveConstants.OWNER, table.getOwner());
}
if (table.isSetTableType()) {
tableProps.setProp(HiveConstants.TABLE_TYPE, table.getTableType());
}
if (table.isSetRetention()) {
tableProps.setProp(HiveConstants.RETENTION, table.getRetention());
}
return tableProps;
}
代码示例来源:origin: org.apache.hadoop.hive/hive-metastore
return isSetViewExpandedText();
case TABLE_TYPE:
return isSetTableType();
case PRIVILEGES:
return isSetPrivileges();
代码示例来源:origin: com.facebook.presto.hive/hive-apache
return isSetViewExpandedText();
case TABLE_TYPE:
return isSetTableType();
case PRIVILEGES:
return isSetPrivileges();
代码示例来源:origin: org.spark-project.hive/hive-metastore
return isSetViewExpandedText();
case TABLE_TYPE:
return isSetTableType();
case PRIVILEGES:
return isSetPrivileges();
代码示例来源:origin: org.apache.hive/hive-standalone-metastore
return isSetViewExpandedText();
case TABLE_TYPE:
return isSetTableType();
case PRIVILEGES:
return isSetPrivileges();
内容来源于网络,如有侵权,请联系作者删除!