@Override
  protected GetPartitionsByNamesResult getPartitionsByNamesInternal(GetPartitionsByNamesRequest rqst) throws TException {
    Map<Object, Object> queryCache = getQueryCache();
    if (queryCache != null) {
      MapWrapper cache = new MapWrapper(queryCache);
      // 1) Retrieve from the cache those ids present, gather the rest
      Pair<List<Partition>, List<String>> p = getPartitionsByNamesCache(
          cache, rqst, null);
      List<String> partitionsMissing = p.getRight();
      List<Partition> partitions = p.getLeft();
      // 2) If they were all present in the cache, return
      if (partitionsMissing.isEmpty()) {
        return new GetPartitionsByNamesResult(partitions);
      }
      // 3) If they were not, gather the remaining
      GetPartitionsByNamesRequest newRqst = new GetPartitionsByNamesRequest(rqst);
      newRqst.setNames(partitionsMissing);
      GetPartitionsByNamesResult r = super.getPartitionsByNamesInternal(newRqst);
      // 4) Populate the cache
      List<Partition> newPartitions = loadPartitionsByNamesCache(
          cache, r, rqst, null);
      // 5) Sort result (in case there is any assumption) and return
      return computePartitionsByNamesFinal(rqst, partitions, newPartitions);
    }
    return super.getPartitionsByNamesInternal(rqst);
  }
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