Skip to content

Commit

Permalink
HDFS-16873 FileStatus compareTo specify ordering by path (#5219)
Browse files Browse the repository at this point in the history
  • Loading branch information
djdillon authored Dec 21, 2022
1 parent 8d22125 commit b63b777
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,8 @@ public void setSymlink(final Path p) {
}

/**
* Compare this FileStatus to another FileStatus
* Compare this FileStatus to another FileStatus based on lexicographical
* order of path.
* @param o the FileStatus to be compared.
* @return a negative integer, zero, or a positive integer as this object
* is less than, equal to, or greater than the specified object.
Expand All @@ -412,7 +413,8 @@ public int compareTo(FileStatus o) {
}

/**
* Compare this FileStatus to another FileStatus.
* Compare this FileStatus to another FileStatus based on lexicographical
* order of path.
* This method was added back by HADOOP-14683 to keep binary compatibility.
*
* @param o the FileStatus to be compared.
Expand Down

0 comments on commit b63b777

Please sign in to comment.