public List<Function> getFunctionsInDb(String dbName, String pattern) throws HiveException {
    try {
      GetFunctionsRequest request = new GetFunctionsRequest(dbName);
      request.setPattern(pattern);
      request.setCatalogName(getDefaultCatalog(conf));
      request.setReturnNames(false);
      return getMSC().getFunctionsRequest(request).getFunctions();
    } catch (TException te) {
      throw new HiveException(te);
    }
  }
Enqueue a compaction request.  Only 1 compaction for a given resource (db/table/partSpec) can
be scheduled/running at any given time.
@param request The {@link CompactionRequest} object containing the details required to enqueue
               a compaction request.
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java