@Override public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TableName tableName = (TableName) o;
    return Objects.equals(cat, tableName.cat) && Objects.equals(db, tableName.db) && Objects
        .equals(table, tableName.table);
  }
Get the name in db.table format, for use with stuff not yet converted to use the catalog.
storage-api/src/java/org/apache/hadoop/hive/common/TableName.java