@Override
  protected GetTableResult getTableInternal(GetTableRequest req) throws TException {
    Map<Object, Object> queryCache = getQueryCache();
    if (queryCache != null) {
      // Retrieve or populate cache
      CacheKey cacheKeyTableId = new CacheKey(KeyType.TABLE_ID, req.getCatName(), req.getDbName(), req.getTblName());
      long tableId = -1;

      if (queryCache.containsKey(cacheKeyTableId))
        tableId = (long) queryCache.get(cacheKeyTableId);

      req.setId(tableId);
      CacheKey cacheKey = new CacheKey(KeyType.TABLE, req);
      GetTableResult v = (GetTableResult) queryCache.get(cacheKey);
      if (v == null) {
        v = super.getTableInternal(req);
        if (tableId == -1) {
          queryCache.put(cacheKeyTableId, v.getTable().getId());
          req.setId(v.getTable().getId());
          cacheKey = new CacheKey(KeyType.TABLE, req);
        }
        queryCache.put(cacheKey, v);
      } else {
        LOG.debug("Query level HMS cache: method=getTableInternal, dbName={}, tblName={}", req.getDbName(),
            req.getTblName());
      }
      return v;
    }
    return super.getTableInternal(req);
  }
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