From 42a7e36ae5902c08ed3a1b553bec645291f1778a Mon Sep 17 00:00:00 2001 From: ron-gal <125445217+ron-gal@users.noreply.github.com> Date: Thu, 2 Nov 2023 14:26:12 -0400 Subject: [PATCH] chore: Add getPageSize() to QueryPaginator (#1987) * add getPageSize() to QueryPaginator * fix build * fix lint * add javadoc --- .../com/google/cloud/bigtable/data/v2/models/Query.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/Query.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/Query.java index 7de167dd52..c7e69d70d4 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/Query.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/Query.java @@ -407,6 +407,12 @@ public boolean advance(@Nonnull ByteString lastSeenRowKey) { query.builder.setRows(remaining); return true; } + + /** Get the page size of the current Pagniator. For internal use only. */ + @InternalApi + public int getPageSize() { + return this.pageSize; + } } @Override