-
Notifications
You must be signed in to change notification settings - Fork 123
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
Conversation
Make getters in Partition class public so that they can be accessed outside com.google.cloud.spanner package.
There was a problem hiding this 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?
google-cloud-spanner/src/main/java/com/google/cloud/spanner/Partition.java
Outdated
Show resolved
Hide resolved
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. |
Make getters in Partition class public so that they can be accessed outside com.google.cloud.spanner package.