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

Make {Read,Write}Options-parsing methods public #1294

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

clairemcginty
Copy link

@clairemcginty clairemcginty commented Jan 10, 2025

👋 I'm an Apache Beam user who recently contributed this PR to allow users to pass in custom StorageReadOptions to a Beam Pipeline. However, I don't have an easy way to construct these options from my Configuration objects. I'm proposing to make this method public in gcs-connector so I can easily transform a Configuration into a GoogleCloudStorageReadOptions instance.

Copy link

google-cla bot commented Jan 10, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@@ -653,7 +653,7 @@ private static GoogleCloudStorageReadOptions getReadChannelOptions(Configuration
.build();
}

private static AsyncWriteChannelOptions getWriteChannelOptions(Configuration config) {
public static AsyncWriteChannelOptions getWriteChannelOptions(Configuration config) {
Copy link
Author

Choose a reason for hiding this comment

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

though this method isn't strictly needed based on my Beam PR, I thought it made sense to make it public as well to have symmetry with the getReadChannelOptions method.

@clairemcginty
Copy link
Author

hi, I just wanted to bump this PR! @arunkumarchacko, would you have time to take a look? thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant