You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by vi...@apache.org on 2022/04/20 23:26:59 UTC
[hadoop] branch branch-2.10 updated: HADOOP-18172: Change scope of InodeTree and its member methods to make them accessible from outside package. (#4144)
This is an automated email from the ASF dual-hosted git repository.
virajith pushed a commit to branch branch-2.10
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-2.10 by this push:
new 96ee4879fca HADOOP-18172: Change scope of InodeTree and its member methods to make them accessible from outside package. (#4144)
96ee4879fca is described below
commit 96ee4879fca274b1687559962f094ba0438d0482
Author: Xing Lin <li...@gmail.com>
AuthorDate: Wed Apr 20 16:26:48 2022 -0700
HADOOP-18172: Change scope of InodeTree and its member methods to make them accessible from outside package. (#4144)
Reviewed-by: Virajith Jalaparti <vi...@apache.org>
---
.../src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java
index 4b73ddb58df..c2087960559 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java
@@ -58,7 +58,7 @@ import org.apache.hadoop.util.StringUtils;
@InterfaceAudience.Private
@InterfaceStability.Unstable
-abstract class InodeTree<T> {
+public abstract class InodeTree<T> {
enum ResultKind {
INTERNAL_DIR,
EXTERNAL_DIR
@@ -410,7 +410,7 @@ abstract class InodeTree<T> {
return rootFallbackLink != null;
}
- protected INodeLink<T> getRootFallbackLink() {
+ public INodeLink<T> getRootFallbackLink() {
Preconditions.checkState(root.isInternalDir());
return rootFallbackLink;
}
@@ -627,7 +627,7 @@ abstract class InodeTree<T> {
* If the input pathname leads to an internal mount-table entry then
* the target file system is one that represents the internal inode.
*/
- static class ResolveResult<T> {
+ public static class ResolveResult<T> {
final ResultKind kind;
final T targetFileSystem;
final String resolvedPath;
@@ -654,7 +654,7 @@ abstract class InodeTree<T> {
* @return ResolveResult which allows further resolution of the remaining path
* @throws FileNotFoundException
*/
- ResolveResult<T> resolve(final String p, final boolean resolveLastComponent)
+ public ResolveResult<T> resolve(final String p, final boolean resolveLastComponent)
throws IOException {
// TO DO: - more efficient to not split the path, but simply compare
String[] path = breakIntoPathComponents(p);
@@ -756,7 +756,7 @@ abstract class InodeTree<T> {
* @return home dir value from mount table; null if no config value
* was found.
*/
- String getHomeDirPrefixValue() {
+ public String getHomeDirPrefixValue() {
return homedirPrefix;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org