Details
-
Wish
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
fs shell, hdfs
Description
Default implementation sorts the array in ascending order of the files, a parameter can be added to current implementation so that it can sort in descending order as well.
Current impl:
public static boolean More ...copyMerge(FileSystem srcFS, Path srcDir, FileSystem dstFS, Path dstFile, boolean deleteSource, Configuration conf, String addString) throws IOException {
Proposed:
public static boolean More ...copyMerge(FileSystem srcFS, Path srcDir, FileSystem dstFS, Path dstFile, boolean deleteSource, Configuration conf, String addString, boolean sort) throws IOException {