hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "david king (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-9066) Sorting for FileStatus[]
Date Tue, 20 Nov 2012 09:46:59 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-9066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13500947#comment-13500947

david king commented on HADOOP-9066:

    I have upload the new TestCase-TestFileStatusTool ,  Use the FileStatusTool to sort the
array of FileStstus[], for examle:
//Ascending the array of FileStatus[] 
FileStatusTool.sortFileStatus(inputFiles, new ConcreteFileStatusAscComparable());

//Descending the array of FileStatus[]
FileStatusTool.sortFileStatus(inputFiles, new ConcreteFileStatusDescComparable());
> Sorting for FileStatus[]
> ------------------------
>                 Key: HADOOP-9066
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9066
>             Project: Hadoop Common
>          Issue Type: Improvement
>         Environment: java7 , RedHat9 , Hadoop 0.20.2 ,eclipse-jee-juno-linux-gtk.tar.gz
>            Reporter: david king
>              Labels: patch
>         Attachments: ConcreteFileStatusAscComparable.java, ConcreteFileStatusDescComparable.java,
FileStatusComparable.java, FileStatusTool.java, TestFileStatusTool.java
>   I will submit a batch of FileStatusTool that used to sort FileStatus by the Comparator,
the Comparator not only customer to realizate , but alse use the example code.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message