public List<Table> getMaterializedViewObjectsByPattern(String dbName, String pattern) throws HiveException {
    return getTableObjects(dbName, pattern, TableType.MATERIALIZED_VIEW);
  }
Get materialized views for the specified database that match the provided regex pattern.
@param dbName
@param pattern
@return List of materialized view table objects
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java