public Table getTable(final String dbName, final String tableName) throws HiveException {
     // TODO: catalog... etc everywhere
    if (tableName.contains(".")) {
      String[] names = Utilities.getDbTableName(tableName);
      return this.getTable(names[0], names[1], null, true);
    } else {
      return this.getTable(dbName, tableName, null, true);
    }
  }
Returns metadata of the table

@param dbName
         the name of the database
@param tableName
         the name of the table
@return the table
@exception HiveException
             if there's an internal error or if the table doesn't exist
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java