You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Sambit Tripathy (JIRA)" <ji...@apache.org> on 2014/07/22 19:40:39 UTC

[jira] [Created] (HADOOP-10874) hdfs dfs -getmerge can have an additional parameter for sort order

Sambit Tripathy created HADOOP-10874:
----------------------------------------

             Summary: hdfs dfs -getmerge can have an additional parameter for sort order
                 Key: HADOOP-10874
                 URL: https://issues.apache.org/jira/browse/HADOOP-10874
             Project: Hadoop Common
          Issue Type: Wish
          Components: fs
            Reporter: Sambit Tripathy
            Priority: Minor


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 {



--
This message was sent by Atlassian JIRA
(v6.2#6252)