@Override
  protected Database getDatabaseInternal(GetDatabaseRequest request) throws TException {
    Map<Object, Object> queryCache = getQueryCache();
    if (queryCache != null) {
      // Retrieve or populate cache
      CacheKey cacheKey = new CacheKey(KeyType.DATABASE, request);
      Database v = (Database) queryCache.get(cacheKey);
      if (v == null) {
        v = super.getDatabaseInternal(request);
        queryCache.put(cacheKey, v);
      } else {
        LOG.debug(
            "Query level HMS cache: method=getDatabaseInternal, name={}",
            request.getName());
      }
      return v;
    }
    return super.getDatabaseInternal(request);
  }
Delete the directory where the partition resides.
@param partition instance of partition, must be not null
@param purgeData purge the data
@return true if delete was successful
@throws MetaException if delete fails
ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java