public List<String> getTablesByPattern(String dbName, String tablePattern) throws HiveException {
    return getTablesByType(dbName, tablePattern, null);
  }
Returns all existing tables from the specified database which match the given
pattern. The matching occurs as per Java regular expressions.
@param dbName
@param tablePattern
@return list of table names
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java