private static String encodePartDesc(String partKey, String partVal) {
    try {
      StringBuilder sb = new StringBuilder();
      sb.append(
          URLEncoder.encode(partKey, ENCODING))
          .append('=')
          .append(URLEncoder.encode(partVal, ENCODING));
      return sb.toString();
    } catch (UnsupportedEncodingException e) {
      throw new RuntimeException(e);
    }
  }
Combines partition key and value Strings into one by encoding each and concating with '=' .
@param partKey
@param partVal
@return
storage-api/src/java/org/apache/hadoop/hive/common/io/CacheTag.java