[ 
https://issues.apache.org/jira/browse/HADOOP-19207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17903291#comment-17903291
 ] 

ASF GitHub Bot commented on HADOOP-19207:
-----------------------------------------

anmolanmol1234 commented on code in PR #7210:
URL: https://github.com/apache/hadoop/pull/7210#discussion_r1871050582


##########
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/contracts/services/BlobListResultSchema.java:
##########
@@ -0,0 +1,53 @@
+package org.apache.hadoop.fs.azurebfs.contracts.services;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * The ListResultSchema model for Blob Endpoint Listing.
+ */
+public class BlobListResultSchema implements ListResultSchema {
+
+  // List of paths returned by Blob Endpoint Listing.
+  private List<BlobListResultEntrySchema> paths;
+
+  // Continuation token for the next page of results.
+  private String nextMarker;
+
+  public BlobListResultSchema() {
+    this.paths = new ArrayList<>();
+    nextMarker = null;
+  }
+
+  /**
+   * Return the list of paths returned by Blob Endpoint Listing.
+   * @return
+   */
+  @Override
+  public List<BlobListResultEntrySchema> paths() {
+    return paths;
+  }
+
+  /**
+   * Set the paths value to list of paths returned by Blob Endpoint Listing.
+   * @param paths the paths value to set
+   * @return the ListSchema object itself.
+   */
+  @Override
+  public ListResultSchema withPaths(final List<? extends 
ListResultEntrySchema> paths) {
+    this.paths = (List<BlobListResultEntrySchema>) paths;
+    return this;
+  }
+
+  public void addBlobListEntry(final BlobListResultEntrySchema blobListEntry) {
+    this.paths.add(blobListEntry);
+  }
+
+  public String getNextMarker() {
+    return nextMarker;
+  }
+
+  public void setNextMarker(String nextMarker) {
+    this.nextMarker = nextMarker;
+  }
+}

Review Comment:
   same





> ABFS: [FnsOverBlob] Response Handling of Blob Endpoint APIs and Metadata APIs
> -----------------------------------------------------------------------------
>
>                 Key: HADOOP-19207
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19207
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/azure
>    Affects Versions: 3.4.0
>            Reporter: Anuj Modi
>            Assignee: Anuj Modi
>            Priority: Major
>              Labels: pull-request-available
>
> Blob Endpoint APIs has a different format for response than DFS Endpoint APIs.
> There are some behavioral differences as well that need to be handled at 
> client side.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to