public static <T> T getFromPathRecursively(Map<Path, T> pathToPartitionInfo, Path dir,
      Map<Map<Path, T>, Map<Path, T>> cacheMap, boolean ignoreSchema) throws IOException {
    return getFromPathRecursively(pathToPartitionInfo, dir, cacheMap, ignoreSchema, false);
  }
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