Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Can't access properties of S3ObjectSummary properties #180

Open
orkunkl opened this issue Aug 14, 2018 · 1 comment
Open

Can't access properties of S3ObjectSummary properties #180

orkunkl opened this issue Aug 14, 2018 · 1 comment

Comments

@orkunkl
Copy link

orkunkl commented Aug 14, 2018

I am trying to filter some of the S3Object summaries depending on their keys. But apparently key and other values are not accessible like in this code bucket.objectSummaries.filter(_.key) except for bucket. So I don't know if this is a design choice. If it is, what is the purpose of making objectSummaries a Stream[S3ObjectSummary]?

@derrickburns
Copy link
Collaborator

objectSummaries is a Stream to avoid the latency and memory of downloading all the summaries synchronously. This is useful when buckets contain a large number of objects.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants