manika137 commented on code in PR #8212:
URL: https://github.com/apache/hadoop/pull/8212#discussion_r3019644853


##########
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsInputStream.java:
##########
@@ -561,11 +579,73 @@ protected int readInternal(final long position, final 
byte[] b, final int offset
     }
   }
 
+  /**
+   * Convert a {@link Path} to the relative path string used by ABFS.
+   *
+   * <p>This returns the URI path component of the supplied {@code path}. If 
the
+   * resulting path is empty, this method returns {@code ROOT_PATH}.
+   *
+   * @param path the {@link Path} to convert; must not be null
+   * @return the relative path as a {@link String}; never null
+   */
+  String getRelativePath(final Path path) {

Review Comment:
   Made the method static



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to