private static <T> Map<Path, T> populateNewT(Map<Path, T> pathToPartitionInfo) {
    Map<Path, T> newPathToPartitionInfo = new HashMap<>();
    for (Map.Entry<Path, T> entry: pathToPartitionInfo.entrySet()) {
      T partDesc = entry.getValue();
      Path pathOnly = Path.getPathWithoutSchemeAndAuthority(entry.getKey());
      newPathToPartitionInfo.put(pathOnly, partDesc);
    }
    return newPathToPartitionInfo;
  }
Checks if files are in same format as the given input format.

Note: an empty set of files is considered compliant.
ql/src/java/org/apache/hadoop/hive/ql/io/HiveFileFormatUtils.java