Skip to content

Can't understand work of listObject method in Java MinIO client #18752

Closed Answered by klauspost
aarexer asked this question in Q&A
Discussion options

You must be logged in to vote
  1. I believe maxKeys sets the number of keys per request and then does multiple requests. @balamurugana can confirm.
  2. If you need things like "content-disposition" you will need to Stat the object. This is not returned by listings. You can try includeUserMetadata(), but that is not an official S3 API, so it will only work on MinIO hosts.
  3. This is Lexicographic (alphabetical) order, which is the order ListObjects returns results.
  4. Correct - this is not trivial. The ListObjects API only has start-after, which makes pagination pretty much impossible. You will probably need to do the listing on your backend to be able to do pagination.

We cannot change the S3 API.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@aarexer
Comment options

@klauspost
Comment options

@aarexer
Comment options

Answer selected by harshavardhana
Comment options

You must be logged in to vote
1 reply
@aarexer
Comment options

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants