gax-java icon indicating copy to clipboard operation
gax-java copied to clipboard

FR: provide a way to asynchronously fetch all of the entries in a paginated callable

Open igorbernstein2 opened this issue 7 years ago • 2 comments

Currently there is no straightforward way to asynchronously get all of the entries in a paginated method. The user either has to use a thread pool and call AbstractPage#iterateAll() or use chained futures for each page.

igorbernstein2 avatar Aug 29 '18 20:08 igorbernstein2

How common is this use case? I don't have a good sense of how highly this should be prioritized. cc @garrettjonesgoogle

michaelbausor avatar Sep 21 '18 17:09 michaelbausor

I'd say its a pretty low priority. I just want to get rid of this ugliness: https://github.com/GoogleCloudPlatform/google-cloud-java/blob/36409f5b1df89609eaef92d09cebea97931339bd/google-cloud-clients/google-cloud-bigtable-admin/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableTableAdminClient.java#L439-L478

igorbernstein2 avatar Sep 21 '18 17:09 igorbernstein2

Closing due to low priority and lack of activity for a long time.

meltsufin avatar Sep 28 '22 18:09 meltsufin