GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Make bigquery functional classes extend info classes by mziccard · Pull Request #609 · googleapis/google-cloud-java

Conversation

@mziccard

@mziccard mziccard commented Feb 2, 2016

Copy link
Copy Markdown
Contributor

This PR performs the following changes

  • Make Dataset extend DatasetInfo
  • Make Table extend TableInfo
  • Make Job extend JobInfo
  • Update READMEs and snippets
  • Update BigQueryExample
  • Update and add more tests

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mziccard
Make bigquery functional classes extend info classes
b0c0bb7
- Dataset extends DatasetInfo
- Table extends TableInfo
- Job extends JobInfo
- Update READMEs and snippets
- Update BigQueryExample
- Update and add more tests
@mziccard mziccard added the api: bigquery Issues related to the BigQuery API. label Feb 2, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 2, 2016
@ajkannan

ajkannan commented Feb 3, 2016

Copy link
Copy Markdown

Since the functional objects should now be serializable, we should add them to SerializationTest

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ajkannan
ajkannan reviewed Feb 3, 2016
View reviewed changes
Comment thread gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/Dataset.java Outdated

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ajkannan

ajkannan commented Feb 3, 2016

Copy link
Copy Markdown

@mziccard took a first pass, looks good! Just some minor comments from me.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

aozarov
aozarov reviewed Feb 3, 2016
View reviewed changes
Comment thread gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/DatasetInfo.java Outdated

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mziccard added 2 commits February 3, 2016 11:20
@mziccard
Minor refactoring bigquery functional objects
94533b2
- Make Builder public
- Make Dataset.builder package scope
- Add toAndFromPb test
- Remove static get methods
@mziccard
Add functional classes to SerializationTest
5829d81
@mziccard
mziccard force-pushed the bigquery-hierachies branch from 9428a03 to 5829d81 Compare February 3, 2016 16:00
@mziccard

mziccard commented Feb 3, 2016

Copy link
Copy Markdown
Contributor Author

Comments addressed

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ajkannan

ajkannan commented Feb 3, 2016

Copy link
Copy Markdown

Looks good, one comment from me about removing the functional class builder() methods entirely. I also think we should manually test the snippets in the READMEs/package-info to make sure that there aren't any access issues, missing imports, or typos.

I'll take care of comments that referenced Resource Manager (ie removing the package scope builder() methods from Resource Manager's Project class and making sure any Project.staticMethods() are removed as appropriate).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

aozarov
aozarov reviewed Feb 4, 2016
View reviewed changes
Comment thread gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/JobInfo.java Outdated
private final String userEmail;
private final JobConfiguration configuration;
/**
* Base class for a {@code JobInfo} builder.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aozarov

aozarov commented Feb 4, 2016

Copy link
Copy Markdown
Contributor

Looks great! I really like this change.
Few nits and suggestions.
Also, unrelated:

Missing some @Override annotation
WriteChannelConfiguration
TableDataWriteChannel
QueryJobConfiguration
LoadJobConfiguration
ExtractJobConfiguration
CopyJobConfiguration
BigQueryImpl

Missing servialVersionUID
Acl.View

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ajkannan ajkannan mentioned this pull request Feb 4, 2016
Make storage functional objects subclasses of metadata objects. #614
Merged
mziccard added 2 commits February 4, 2016 09:39
@mziccard
Refactor bigquery function objects builders
b6ad451
- Remove static builder methods
- Add builder methods params to builder constructors
- Better javadoc for builder classes
@mziccard
Add missing override annotation and serialVersionUID
fbcbfb4
@mziccard

mziccard commented Feb 4, 2016

Copy link
Copy Markdown
Contributor Author

Comments fixed and opened #618

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

aozarov added a commit that referenced this pull request Feb 4, 2016
@aozarov
Merge pull request #609 from mziccard/bigquery-hierachies
4bf3796
Make bigquery functional classes extend info classes
@aozarov
aozarov merged commit 4bf3796 into googleapis:master Feb 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: bigquery Issues related to the BigQuery API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@mziccard @ajkannan @aozarov @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.