You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2021/01/18 09:28:51 UTC
[GitHub] [ozone] rakeshadr commented on pull request #1811: HDDS-4683. ListKeys: do lookup in dir and file tables
rakeshadr commented on pull request #1811:
URL: https://github.com/apache/ozone/pull/1811#issuecomment-762114361
> @rakeshadr , haven't started the review. As I find there is one another similar task [HDDS-4332](https://issues.apache.org/jira/browse/HDDS-4332)(ListFileStatus - do lookup in directory and file tables). What's the major differences in these two task implementation? That would be helpful to review this PR if I know this.
Thank you @linyiqun for your help in reviews. Following are the points I learned after comparing listKeys and listStatus:
1. ListKeys will skip the given startKey and won't be added to the finalList
2. ListKeys will add trailing slash for the directory key names.
3. ListKeys will recursively list all the keys starting from keyPrefix and startKey.
```
For ex: FS structure like,
/a
/a/b
/a/b/c
/a/b/d
/a/b/file1
a/b/c/file2
```
#listKeys("/a/b") returns array values like, [a/b/, a/b/file1, a/b/c/, a/b/d/, a/b/c/file2]
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org