code: public static List<Table> getMaterializeViews(org.voltdb.catalog.Database database,
                                                         org.voltdb.catalog.Table table)
      {
          ArrayList<Table> tlist = new ArrayList<>();
          CatalogMap<Table> tables = database.getTables();
          for (Table t : tables) {
              Table matsrc = t.getMaterializer();
              if ((matsrc != null) && (matsrc.getRelativeIndex() == table.getRelativeIndex())) {
                  tlist.add(t);
              }
          }
          return tlist;
      }
docs: Return list of materialized view for table.