private Path constructPartialPartPath(Path partialPath, String partKey, Map<String, String> partKVs) {

    StringBuilder sb = new StringBuilder(FileUtils.escapePathName(partKey));
    sb.append("=");
    sb.append(FileUtils.escapePathName(partKVs.get(partKey)));
    return new Path(partialPath, sb.toString());
  }
Generate partition metadata object to be used to add to metadata.
@param context The job context.
@param jobInfo The OutputJobInfo.
@param partLocnRoot The table-equivalent location root of the partition
                      (temporary dir if dynamic partition, table dir if static)
@param dynPartPath The path of dynamic partition which is created
@param partKVs The keyvalue pairs that form the partition
@param outputSchema The output schema for the partition
@param params The parameters to store inside the partition
@param table The Table metadata object under which this Partition will reside
@param fs FileSystem object to operate on the underlying filesystem
@param conf HiveConf used to access FS
@param status Permission that's the default permission of the table dir.
@return Constructed Partition metadata object
@throws java.io.IOException
hcatalog/core/src/main/java/org/apache/hive/hcatalog/mapreduce/FileOutputCommitterContainer.java