Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

chore: make Partition class getters public#2195

Merged
gcf-merge-on-green[bot] merged 6 commits intomainfrom
partition-getters-public
Dec 13, 2022
Merged

chore: make Partition class getters public#2195
gcf-merge-on-green[bot] merged 6 commits intomainfrom
partition-getters-public

Conversation

@rajatbhatta
Copy link
Copy Markdown
Contributor

Make getters in Partition class public so that they can be accessed outside com.google.cloud.spanner package.

Make getters in Partition class public so that they can be accessed outside com.google.cloud.spanner package.
@rajatbhatta rajatbhatta requested a review from a team December 13, 2022 02:14
@product-auto-label product-auto-label Bot added size: s Pull request size is small. api: spanner Issues related to the googleapis/java-spanner API. labels Dec 13, 2022
Copy link
Copy Markdown
Collaborator

@olavloite olavloite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with a small nit on the getColumns() method.

Why do we need to make this public?

@gcf-owl-bot gcf-owl-bot Bot requested a review from a team December 13, 2022 09:40
@rajatbhatta
Copy link
Copy Markdown
Contributor Author

Why do we need to make this public?

I only need getPartitionToken to be made public for some Google-internal tests to be run. There are some asserts which need to check for the partitionToken, and with default access specifier, it was not accessible outside com.google.cloud.spanner package.

I'll probably have the rest of the getters as default and will make them public in the future if need be.

@product-auto-label product-auto-label Bot added size: xs Pull request size is extra small. and removed size: s Pull request size is small. labels Dec 13, 2022
@rajatbhatta rajatbhatta added the automerge Merge the pull request once unit tests and other checks pass. label Dec 13, 2022
@gcf-merge-on-green gcf-merge-on-green Bot merged commit 940e2b6 into main Dec 13, 2022
@gcf-merge-on-green gcf-merge-on-green Bot deleted the partition-getters-public branch December 13, 2022 10:24
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Dec 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spanner Issues related to the googleapis/java-spanner API. size: xs Pull request size is extra small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants