DadanielZ commented on a change in pull request #768: HADOOP-16269. ABFS: add 
listFileStatus with StartFrom.
URL: https://github.com/apache/hadoop/pull/768#discussion_r280665077
 
 

 ##########
 File path: 
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystemStore.java
 ##########
 @@ -522,15 +537,38 @@ public FileStatus getFileStatus(final Path path) throws 
IOException {
             eTag);
   }
 
+  /**
+   * @param path The list path.
+   * @return the entries in the path.
+   * */
   public FileStatus[] listStatus(final Path path) throws IOException {
-    LOG.debug("listStatus filesystem: {} path: {}",
+    return listStatus(path, null);
+  }
+
+  /**
+   * @param path Path the list path.
+   * @param startFrom the entry name that list results should start with.
+   *                  Notice that startFrom can be a non-existent entry, then 
the list request response contains
+   *                  all entries after this non-existent entry in lexical 
order.
+   * @return the entries in the path in lexical order from "startFrom".
+   * */
+  public FileStatus[] listStatus(final Path path, final String startFrom) 
throws IOException {
 
 Review comment:
   From what I know hadoop-azure jar will be imported by customer code, so I 
keep it public here. I will add unstable annotation here for now.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

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

Reply via email to