/** * Get a list of all the reducer outputs in a directory. If the given * path/uri is not a directory, then it is assumed that it is a SequenceFile * and returned directly. * * @param uriOrPath * the path or uri * @return the reducer outputs * @throws IOException */ public static URI[] getReducerFiles(String uriOrPath) throws IOException { return getFiles(uriOrPath, "part-r-"); }
/** * Get a list of all the reducer outputs in a directory. If the given * path/uri is not a directory, then it is assumed that it is a SequenceFile * and returned directly. * * @param uriOrPath * the path or uri * @return the reducer outputs * @throws IOException */ public static URI[] getReducerFiles(String uriOrPath) throws IOException { return getFiles(uriOrPath, "part-r-"); }