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

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

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

Table.equals介绍

暂无

代码示例

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

@Override
public boolean equals(Object that) {
 if (that == null)
  return false;
 if (that instanceof Table)
  return this.equals((Table)that);
 return false;
}

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

@Override
 public boolean equals(Object obj) {
  if (this == obj) {
   return true;
  }
  if (!(obj instanceof TableAliasInfo)) {
   return false;
  }
  TableAliasInfo tabAlias = (TableAliasInfo) obj;
  return StringUtils.equals(alias, tabAlias.alias)
   && (table == null ? tabAlias.table == null : table.equals(tabAlias.table));
 }
}

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

@Override
 public boolean equals(Object obj) {
  if (this == obj) {
   return true;
  }
  if (!(obj instanceof TableAliasInfo)) {
   return false;
  }
  TableAliasInfo tabAlias = (TableAliasInfo) obj;
  return StringUtils.equals(alias, tabAlias.alias)
   && (table == null ? tabAlias.table == null : table.equals(tabAlias.table));
 }
}

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

@Override
public boolean equals(Object obj) {
 if (this == obj) {
  return true;
 }
 if (obj == null) {
  return false;
 }
 if (getClass() != obj.getClass()) {
  return false;
 }
 Table other = (Table) obj;
 if (tTable == null) {
  if (other.tTable != null) {
   return false;
  }
 } else if (!tTable.equals(other.tTable)) {
  return false;
 }
 return true;
}

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

@Override
public boolean equals(Object obj) {
 if (this == obj) {
  return true;
 }
 if (obj == null) {
  return false;
 }
 if (getClass() != obj.getClass()) {
  return false;
 }
 Table other = (Table) obj;
 if (tTable == null) {
  if (other.tTable != null) {
   return false;
  }
 } else if (!tTable.equals(other.tTable)) {
  return false;
 }
 return true;
}

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

@Override
public boolean equals(Object o) {
 if (this == o) return true;
 if (o == null || getClass() != o.getClass()) return false;
 HCatTableInfo tableInfo = (HCatTableInfo) o;
 if (dataColumns != null ? !dataColumns.equals(tableInfo.dataColumns) : tableInfo.dataColumns != null)
  return false;
 if (databaseName != null ? !databaseName.equals(tableInfo.databaseName) : tableInfo.databaseName != null)
  return false;
 if (partitionColumns != null ? !partitionColumns.equals(tableInfo.partitionColumns) : tableInfo.partitionColumns != null)
  return false;
 if (storerInfo != null ? !storerInfo.equals(tableInfo.storerInfo) : tableInfo.storerInfo != null) return false;
 if (table != null ? !table.equals(tableInfo.table) : tableInfo.table != null) return false;
 if (tableName != null ? !tableName.equals(tableInfo.tableName) : tableInfo.tableName != null) return false;
 return true;
}

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

public boolean equals(GetTableResult that) {
 if (that == null)
  return false;
 boolean this_present_table = true && this.isSetTable();
 boolean that_present_table = true && that.isSetTable();
 if (this_present_table || that_present_table) {
  if (!(this_present_table && that_present_table))
   return false;
  if (!this.table.equals(that.table))
   return false;
 }
 boolean this_present_isStatsCompliant = true && this.isSetIsStatsCompliant();
 boolean that_present_isStatsCompliant = true && that.isSetIsStatsCompliant();
 if (this_present_isStatsCompliant || that_present_isStatsCompliant) {
  if (!(this_present_isStatsCompliant && that_present_isStatsCompliant))
   return false;
  if (this.isStatsCompliant != that.isStatsCompliant)
   return false;
 }
 return true;
}

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

if (!(this_present_table && that_present_table))
 return false;
if (!this.table.equals(that.table))
 return false;

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

+ "; " + tbl.getTTable() + ")", ft.getTTable().equals(tbl.getTTable()));
assertEquals("SerializationLib is not set correctly", tbl
  .getSerializationLib(), ft.getSerializationLib());

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

@Override
public boolean equals(Object that) {
 if (that == null)
  return false;
 if (that instanceof Table)
  return this.equals((Table)that);
 return false;
}

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

@Override
public boolean equals(Object that) {
 if (that == null)
  return false;
 if (that instanceof Table)
  return this.equals((Table)that);
 return false;
}

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

@Override
public boolean equals(Object that) {
 if (that == null)
  return false;
 if (that instanceof Table)
  return this.equals((Table)that);
 return false;
}

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

@Override
public boolean equals(Object that) {
 if (that == null)
  return false;
 if (that instanceof Table)
  return this.equals((Table)that);
 return false;
}

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

@Override
public boolean equals(Object obj) {
 if (this == obj) {
  return true;
 }
 if (obj == null) {
  return false;
 }
 if (getClass() != obj.getClass()) {
  return false;
 }
 Table other = (Table) obj;
 if (tTable == null) {
  if (other.tTable != null) {
   return false;
  }
 } else if (!tTable.equals(other.tTable)) {
  return false;
 }
 return true;
}

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

@Override
public boolean equals(Object o) {
 if (this == o) return true;
 if (o == null || getClass() != o.getClass()) return false;
 HCatTableInfo tableInfo = (HCatTableInfo) o;
 if (dataColumns != null ? !dataColumns.equals(tableInfo.dataColumns) : tableInfo.dataColumns != null)
  return false;
 if (databaseName != null ? !databaseName.equals(tableInfo.databaseName) : tableInfo.databaseName != null)
  return false;
 if (partitionColumns != null ? !partitionColumns.equals(tableInfo.partitionColumns) : tableInfo.partitionColumns != null)
  return false;
 if (storerInfo != null ? !storerInfo.equals(tableInfo.storerInfo) : tableInfo.storerInfo != null) return false;
 if (table != null ? !table.equals(tableInfo.table) : tableInfo.table != null) return false;
 if (tableName != null ? !tableName.equals(tableInfo.tableName) : tableInfo.tableName != null) return false;
 return true;
}

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

@Override
public boolean equals(Object o) {
 if (this == o) return true;
 if (o == null || getClass() != o.getClass()) return false;
 HCatTableInfo tableInfo = (HCatTableInfo) o;
 if (dataColumns != null ? !dataColumns.equals(tableInfo.dataColumns) : tableInfo.dataColumns != null)
  return false;
 if (databaseName != null ? !databaseName.equals(tableInfo.databaseName) : tableInfo.databaseName != null)
  return false;
 if (partitionColumns != null ? !partitionColumns.equals(tableInfo.partitionColumns) : tableInfo.partitionColumns != null)
  return false;
 if (storerInfo != null ? !storerInfo.equals(tableInfo.storerInfo) : tableInfo.storerInfo != null) return false;
 if (table != null ? !table.equals(tableInfo.table) : tableInfo.table != null) return false;
 if (tableName != null ? !tableName.equals(tableInfo.tableName) : tableInfo.tableName != null) return false;
 return true;
}

代码示例来源:origin: org.apache.hive.hcatalog/hive-hcatalog-core

@Override
public boolean equals(Object o) {
 if (this == o) return true;
 if (o == null || getClass() != o.getClass()) return false;
 HCatTableInfo tableInfo = (HCatTableInfo) o;
 if (dataColumns != null ? !dataColumns.equals(tableInfo.dataColumns) : tableInfo.dataColumns != null)
  return false;
 if (databaseName != null ? !databaseName.equals(tableInfo.databaseName) : tableInfo.databaseName != null)
  return false;
 if (partitionColumns != null ? !partitionColumns.equals(tableInfo.partitionColumns) : tableInfo.partitionColumns != null)
  return false;
 if (storerInfo != null ? !storerInfo.equals(tableInfo.storerInfo) : tableInfo.storerInfo != null) return false;
 if (table != null ? !table.equals(tableInfo.table) : tableInfo.table != null) return false;
 if (tableName != null ? !tableName.equals(tableInfo.tableName) : tableInfo.tableName != null) return false;
 return true;
}

代码示例来源:origin: com.github.hyukjinkwon.hcatalog/hive-hcatalog-core

@Override
public boolean equals(Object o) {
 if (this == o) return true;
 if (o == null || getClass() != o.getClass()) return false;
 HCatTableInfo tableInfo = (HCatTableInfo) o;
 if (dataColumns != null ? !dataColumns.equals(tableInfo.dataColumns) : tableInfo.dataColumns != null)
  return false;
 if (databaseName != null ? !databaseName.equals(tableInfo.databaseName) : tableInfo.databaseName != null)
  return false;
 if (partitionColumns != null ? !partitionColumns.equals(tableInfo.partitionColumns) : tableInfo.partitionColumns != null)
  return false;
 if (storerInfo != null ? !storerInfo.equals(tableInfo.storerInfo) : tableInfo.storerInfo != null) return false;
 if (table != null ? !table.equals(tableInfo.table) : tableInfo.table != null) return false;
 if (tableName != null ? !tableName.equals(tableInfo.tableName) : tableInfo.tableName != null) return false;
 return true;
}

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

public boolean equals(GetTableResult that) {
 if (that == null)
  return false;
 boolean this_present_table = true && this.isSetTable();
 boolean that_present_table = true && that.isSetTable();
 if (this_present_table || that_present_table) {
  if (!(this_present_table && that_present_table))
   return false;
  if (!this.table.equals(that.table))
   return false;
 }
 return true;
}

代码示例来源:origin: airbnb/reair

.equals(ReplicationUtils.stripNonComparables(expectedDestTable));

相关文章

微信公众号

最新文章

更多

Table类方法