Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: make Partition class getters public #2195

Merged
merged 6 commits into from
Dec 13, 2022

Conversation

rajatbhatta
Copy link
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 as a code owner 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
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 as a code owner December 13, 2022 09:40
@rajatbhatta
Copy link
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 join this conversation on GitHub. Already have an account? Sign in to comment
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