public static Map<String, String> makePartSpec(List<FieldSchema> partCols, List<String> partVals) {
    Map<String, String> partSpec = new LinkedHashMap<String, String>();
    for (int i = 0; i < partCols.size(); ++i) {
      partSpec.put(partCols.get(i).getName(), partVals.get(i));
    }
    return partSpec;
  }
Return the partition specification from the specified keys and values

@param partCols
         the names of the partition keys
@param partVals
         the values of the partition keys

@return the partition specification as a map
ql/src/java/org/apache/hadoop/hive/ql/parse/EximUtil.java