Skip to content

Commit

Permalink
Fix COS/OSS/OBS iterative listing
Browse files Browse the repository at this point in the history
### What changes are proposed in this pull request?

Please outline the changes and how this PR fixes the issue.

### Why are the changes needed?

Please clarify why the changes are needed. For instance,
  1. If you propose a new API, clarify the use case for a new API.
  2. If you fix a bug, describe the bug.

### Does this PR introduce any user facing changes?

Please list the user-facing changes introduced by your change, including
  1. change in user-facing APIs
  2. addition or removal of property keys
  3. webui

			pr-link: Alluxio#18383
			change-id: cid-ccd3bcc9e11d88274603ec058e091e97ea136448
  • Loading branch information
elega authored and ssz1997 committed Dec 15, 2023
1 parent 072befe commit 63f3e89
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ public interface ObjectListingChunk {
* @return true if there is, no if there isn't, NULL if it cannot tell
*/
default @Nullable Boolean hasNextChunk() {
return null;
throw new UnsupportedOperationException(
"HasNextChunk not implemented for " + getClass().getName());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,11 @@ public ObjectListingChunk getNextChunk() throws IOException {
}
return null;
}

@Override
public Boolean hasNextChunk() {
return mResult.isTruncated();
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,11 @@ public ObjectListingChunk getNextChunk() throws IOException {
}
return null;
}

@Override
public Boolean hasNextChunk() {
return mResult.isTruncated();
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,11 @@ public ObjectListingChunk getNextChunk() throws IOException {
}
return null;
}

@Override
public Boolean hasNextChunk() {
return mResult.isTruncated();
}
}

@Override
Expand Down

0 comments on commit 63f3e89

Please sign in to comment.