/** * Get a map from date to path for all paths matching yyyy/MM/dd under the given path. * * @param path path to search under * @return map of date to path * @throws IOException IOException */ protected SortedMap<Date,DatePath> getDailyData(Path path) throws IOException { SortedMap<Date,DatePath> data = new TreeMap<Date,DatePath>(); for (DatePath datePath : PathUtils.findNestedDatedPaths(getFileSystem(),path)) { data.put(datePath.getDate(),datePath); } return data; }
/** * Get a map from date to path for all paths matching yyyyMMdd under the given path. * * @param path path to search under * @return map of date to path * @throws IOException IOException */ protected SortedMap<Date,DatePath> getDatedData(Path path) throws IOException { SortedMap<Date,DatePath> data = new TreeMap<Date,DatePath>(); for (DatePath datePath : PathUtils.findDatedPaths(getFileSystem(),path)) { data.put(datePath.getDate(),datePath); } return data; }