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

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

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

  1. @Override
  2. public boolean equals(Object that) {
  3. if (that == null)
  4. return false;
  5. if (that instanceof Table)
  6. return this.equals((Table)that);
  7. return false;
  8. }

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

  1. @Override
  2. public boolean equals(Object obj) {
  3. if (this == obj) {
  4. return true;
  5. }
  6. if (!(obj instanceof TableAliasInfo)) {
  7. return false;
  8. }
  9. TableAliasInfo tabAlias = (TableAliasInfo) obj;
  10. return StringUtils.equals(alias, tabAlias.alias)
  11. && (table == null ? tabAlias.table == null : table.equals(tabAlias.table));
  12. }
  13. }

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

  1. @Override
  2. public boolean equals(Object obj) {
  3. if (this == obj) {
  4. return true;
  5. }
  6. if (!(obj instanceof TableAliasInfo)) {
  7. return false;
  8. }
  9. TableAliasInfo tabAlias = (TableAliasInfo) obj;
  10. return StringUtils.equals(alias, tabAlias.alias)
  11. && (table == null ? tabAlias.table == null : table.equals(tabAlias.table));
  12. }
  13. }

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

  1. @Override
  2. public boolean equals(Object obj) {
  3. if (this == obj) {
  4. return true;
  5. }
  6. if (obj == null) {
  7. return false;
  8. }
  9. if (getClass() != obj.getClass()) {
  10. return false;
  11. }
  12. Table other = (Table) obj;
  13. if (tTable == null) {
  14. if (other.tTable != null) {
  15. return false;
  16. }
  17. } else if (!tTable.equals(other.tTable)) {
  18. return false;
  19. }
  20. return true;
  21. }

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

  1. @Override
  2. public boolean equals(Object obj) {
  3. if (this == obj) {
  4. return true;
  5. }
  6. if (obj == null) {
  7. return false;
  8. }
  9. if (getClass() != obj.getClass()) {
  10. return false;
  11. }
  12. Table other = (Table) obj;
  13. if (tTable == null) {
  14. if (other.tTable != null) {
  15. return false;
  16. }
  17. } else if (!tTable.equals(other.tTable)) {
  18. return false;
  19. }
  20. return true;
  21. }

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

  1. @Override
  2. public boolean equals(Object o) {
  3. if (this == o) return true;
  4. if (o == null || getClass() != o.getClass()) return false;
  5. HCatTableInfo tableInfo = (HCatTableInfo) o;
  6. if (dataColumns != null ? !dataColumns.equals(tableInfo.dataColumns) : tableInfo.dataColumns != null)
  7. return false;
  8. if (databaseName != null ? !databaseName.equals(tableInfo.databaseName) : tableInfo.databaseName != null)
  9. return false;
  10. if (partitionColumns != null ? !partitionColumns.equals(tableInfo.partitionColumns) : tableInfo.partitionColumns != null)
  11. return false;
  12. if (storerInfo != null ? !storerInfo.equals(tableInfo.storerInfo) : tableInfo.storerInfo != null) return false;
  13. if (table != null ? !table.equals(tableInfo.table) : tableInfo.table != null) return false;
  14. if (tableName != null ? !tableName.equals(tableInfo.tableName) : tableInfo.tableName != null) return false;
  15. return true;
  16. }

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

  1. public boolean equals(GetTableResult that) {
  2. if (that == null)
  3. return false;
  4. boolean this_present_table = true && this.isSetTable();
  5. boolean that_present_table = true && that.isSetTable();
  6. if (this_present_table || that_present_table) {
  7. if (!(this_present_table && that_present_table))
  8. return false;
  9. if (!this.table.equals(that.table))
  10. return false;
  11. }
  12. boolean this_present_isStatsCompliant = true && this.isSetIsStatsCompliant();
  13. boolean that_present_isStatsCompliant = true && that.isSetIsStatsCompliant();
  14. if (this_present_isStatsCompliant || that_present_isStatsCompliant) {
  15. if (!(this_present_isStatsCompliant && that_present_isStatsCompliant))
  16. return false;
  17. if (this.isStatsCompliant != that.isStatsCompliant)
  18. return false;
  19. }
  20. return true;
  21. }

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

  1. if (!(this_present_table && that_present_table))
  2. return false;
  3. if (!this.table.equals(that.table))
  4. return false;

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

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

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

  1. @Override
  2. public boolean equals(Object that) {
  3. if (that == null)
  4. return false;
  5. if (that instanceof Table)
  6. return this.equals((Table)that);
  7. return false;
  8. }

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

  1. @Override
  2. public boolean equals(Object that) {
  3. if (that == null)
  4. return false;
  5. if (that instanceof Table)
  6. return this.equals((Table)that);
  7. return false;
  8. }

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

  1. @Override
  2. public boolean equals(Object that) {
  3. if (that == null)
  4. return false;
  5. if (that instanceof Table)
  6. return this.equals((Table)that);
  7. return false;
  8. }

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

  1. @Override
  2. public boolean equals(Object that) {
  3. if (that == null)
  4. return false;
  5. if (that instanceof Table)
  6. return this.equals((Table)that);
  7. return false;
  8. }

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

  1. @Override
  2. public boolean equals(Object obj) {
  3. if (this == obj) {
  4. return true;
  5. }
  6. if (obj == null) {
  7. return false;
  8. }
  9. if (getClass() != obj.getClass()) {
  10. return false;
  11. }
  12. Table other = (Table) obj;
  13. if (tTable == null) {
  14. if (other.tTable != null) {
  15. return false;
  16. }
  17. } else if (!tTable.equals(other.tTable)) {
  18. return false;
  19. }
  20. return true;
  21. }

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

  1. @Override
  2. public boolean equals(Object o) {
  3. if (this == o) return true;
  4. if (o == null || getClass() != o.getClass()) return false;
  5. HCatTableInfo tableInfo = (HCatTableInfo) o;
  6. if (dataColumns != null ? !dataColumns.equals(tableInfo.dataColumns) : tableInfo.dataColumns != null)
  7. return false;
  8. if (databaseName != null ? !databaseName.equals(tableInfo.databaseName) : tableInfo.databaseName != null)
  9. return false;
  10. if (partitionColumns != null ? !partitionColumns.equals(tableInfo.partitionColumns) : tableInfo.partitionColumns != null)
  11. return false;
  12. if (storerInfo != null ? !storerInfo.equals(tableInfo.storerInfo) : tableInfo.storerInfo != null) return false;
  13. if (table != null ? !table.equals(tableInfo.table) : tableInfo.table != null) return false;
  14. if (tableName != null ? !tableName.equals(tableInfo.tableName) : tableInfo.tableName != null) return false;
  15. return true;
  16. }

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

  1. @Override
  2. public boolean equals(Object o) {
  3. if (this == o) return true;
  4. if (o == null || getClass() != o.getClass()) return false;
  5. HCatTableInfo tableInfo = (HCatTableInfo) o;
  6. if (dataColumns != null ? !dataColumns.equals(tableInfo.dataColumns) : tableInfo.dataColumns != null)
  7. return false;
  8. if (databaseName != null ? !databaseName.equals(tableInfo.databaseName) : tableInfo.databaseName != null)
  9. return false;
  10. if (partitionColumns != null ? !partitionColumns.equals(tableInfo.partitionColumns) : tableInfo.partitionColumns != null)
  11. return false;
  12. if (storerInfo != null ? !storerInfo.equals(tableInfo.storerInfo) : tableInfo.storerInfo != null) return false;
  13. if (table != null ? !table.equals(tableInfo.table) : tableInfo.table != null) return false;
  14. if (tableName != null ? !tableName.equals(tableInfo.tableName) : tableInfo.tableName != null) return false;
  15. return true;
  16. }

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

  1. @Override
  2. public boolean equals(Object o) {
  3. if (this == o) return true;
  4. if (o == null || getClass() != o.getClass()) return false;
  5. HCatTableInfo tableInfo = (HCatTableInfo) o;
  6. if (dataColumns != null ? !dataColumns.equals(tableInfo.dataColumns) : tableInfo.dataColumns != null)
  7. return false;
  8. if (databaseName != null ? !databaseName.equals(tableInfo.databaseName) : tableInfo.databaseName != null)
  9. return false;
  10. if (partitionColumns != null ? !partitionColumns.equals(tableInfo.partitionColumns) : tableInfo.partitionColumns != null)
  11. return false;
  12. if (storerInfo != null ? !storerInfo.equals(tableInfo.storerInfo) : tableInfo.storerInfo != null) return false;
  13. if (table != null ? !table.equals(tableInfo.table) : tableInfo.table != null) return false;
  14. if (tableName != null ? !tableName.equals(tableInfo.tableName) : tableInfo.tableName != null) return false;
  15. return true;
  16. }

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

  1. @Override
  2. public boolean equals(Object o) {
  3. if (this == o) return true;
  4. if (o == null || getClass() != o.getClass()) return false;
  5. HCatTableInfo tableInfo = (HCatTableInfo) o;
  6. if (dataColumns != null ? !dataColumns.equals(tableInfo.dataColumns) : tableInfo.dataColumns != null)
  7. return false;
  8. if (databaseName != null ? !databaseName.equals(tableInfo.databaseName) : tableInfo.databaseName != null)
  9. return false;
  10. if (partitionColumns != null ? !partitionColumns.equals(tableInfo.partitionColumns) : tableInfo.partitionColumns != null)
  11. return false;
  12. if (storerInfo != null ? !storerInfo.equals(tableInfo.storerInfo) : tableInfo.storerInfo != null) return false;
  13. if (table != null ? !table.equals(tableInfo.table) : tableInfo.table != null) return false;
  14. if (tableName != null ? !tableName.equals(tableInfo.tableName) : tableInfo.tableName != null) return false;
  15. return true;
  16. }

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

  1. public boolean equals(GetTableResult that) {
  2. if (that == null)
  3. return false;
  4. boolean this_present_table = true && this.isSetTable();
  5. boolean that_present_table = true && that.isSetTable();
  6. if (this_present_table || that_present_table) {
  7. if (!(this_present_table && that_present_table))
  8. return false;
  9. if (!this.table.equals(that.table))
  10. return false;
  11. }
  12. return true;
  13. }

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

  1. .equals(ReplicationUtils.stripNonComparables(expectedDestTable));

相关文章

Table类方法