@Override
  protected GetValidWriteIdsResponse getValidWriteIdsInternal(GetValidWriteIdsRequest 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<TableValidWriteIds>, List<String>> p = getValidWriteIdsCache(
          cache, rqst);
      List<String> fullTableNamesMissing = p.getRight();
      List<TableValidWriteIds> tblValidWriteIds = p.getLeft();
      // 2) If they were all present in the cache, return
      if (fullTableNamesMissing.isEmpty()) {
        return new GetValidWriteIdsResponse(tblValidWriteIds);
      }
      // 3) If they were not, gather the remaining
      GetValidWriteIdsRequest newRqst = new GetValidWriteIdsRequest(rqst);
      newRqst.setFullTableNames(fullTableNamesMissing);
      GetValidWriteIdsResponse r = super.getValidWriteIdsInternal(newRqst);
      // 4) Populate the cache
      List<TableValidWriteIds> newTblValidWriteIds = loadValidWriteIdsCache(
          cache, r, rqst);
      // 5) Sort result (in case there is any assumption) and return
      return computeValidWriteIdsFinal(rqst, tblValidWriteIds, newTblValidWriteIds);
    }
    return super.getValidWriteIdsInternal(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