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

[BEAM-3008] Adds BigtableOptions configurator to the BigtableIO #4205

Merged
merged 4 commits into from Dec 11, 2017

Conversation

dmytroivanov4206
Copy link
Contributor

  • Adds ability to provide configuration function for BigtableOptions.
  • Deprecates previous BigtableOptions providing methods.

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a JIRA issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes.
  • Each commit in the pull request should have a meaningful subject line and body.
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean verify to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

* .setProjectId("project")
* .setInstanceId("instance")
* .withProjectId("project")
* .withInstanceId("instance")
* .withTableId("table"));
* }</pre>
*
* <h3>Using local emulator</h3>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please remove the whole Using local emulator section. It's not right anymore.

Copy link
Contributor

@sduskis sduskis left a comment

Choose a reason for hiding this comment

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

I'll approve. We need to work on toString and display data, but we can only do that once we do more consolidation of logic around instance/project/bigtableoptions/bigtableoptions Function

@@ -438,6 +474,8 @@ public String toString() {
.add("tableId", getTableId())
.add("keyRange", getKeyRange())
.add("filter", getRowFilter())
.add("bigtableOptionsConfiguratorProvided",
Copy link
Contributor

Choose a reason for hiding this comment

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

It's worth printing out the options themselves post configurator. Printing the configurator class might be worth while as well.

- Adds iinfo to toString and populateDisplayData about effective BigtableOptions
@dmytroivanov4206
Copy link
Contributor Author

@sduskis I have organized them for now in single function but it caused the code duplication, once we move it to the BigtableConfig, it would be much nicer. I am not sure that we would be able to populate toString with data once we switch to ValueProviders because we might not have values in time when toString might be called, for populate display data should be fine.

@dmytroivanov4206
Copy link
Contributor Author

Hi @chamikaramj, please merge this PR, @sduskis approved it. Thanks.

@chamikaramj
Copy link
Contributor

LGTM. Merging.

@chamikaramj chamikaramj merged commit f7fc4bd into apache:master Dec 11, 2017
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.

None yet

3 participants