This is an automated email from the ASF dual-hosted git repository.
weichiu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new b63b777c845 HDFS-16873 FileStatus compareTo specify ordering by path
(#5219)
b63b777c845 is described below
commit b63b777c84556752fac40da87110729b5dfabaa7
Author: David Dillon <[email protected]>
AuthorDate: Tue Dec 20 21:11:55 2022 -0500
HDFS-16873 FileStatus compareTo specify ordering by path (#5219)
---
.../src/main/java/org/apache/hadoop/fs/FileStatus.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileStatus.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileStatus.java
index fcef578b072..1d9458148e4 100644
---
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileStatus.java
+++
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileStatus.java
@@ -402,7 +402,8 @@ public class FileStatus implements Writable,
Comparable<Object>,
}
/**
- * 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.
@@ -412,7 +413,8 @@ public class FileStatus implements Writable,
Comparable<Object>,
}
/**
- * 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.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]