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 — feat: expose new API with ReadRowsRequest in EnhancedBigtableStub by rahulKQL · Pull Request #276 · googleapis/java-bigtable

This repository was archived by the owner on Aug 30, 2026. It is now read-only.

Conversation

@rahulKQL

@rahulKQL rahulKQL commented Apr 30, 2020

Copy link
Copy Markdown
Contributor

Fixes #275

This commit would enable the user to target the table using an absolute resource name on each read request. Currently, we expose ServerStreamingCallable<Query, RowT>, which does not have an option to provide different app-profile-id on each request.

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Sorry, something went wrong.

Uh oh!

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

All reactions
@rahulKQL
feat: expose StreamingCallable with ReadRowsRequest in EnhancedBigtab…
fb025ae
…leStub

This commit would enable the user to target the table using absolute resource name on each read request. Currently we expose `ServerStreamingCallable<Query, RowT>`, which does not have an option to provide different `app-profile-id` on each request.
@rahulKQL
rahulKQL requested review from igorbernstein2 and kolea2 April 30, 2020 15:34
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 30, 2020
@codecov

codecov Bot commented Apr 30, 2020 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Codecov Report

Merging #276 into master will decrease coverage by 0.20%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #276      +/-   ##
============================================
- Coverage     79.72%   79.52%   -0.21%     
- Complexity      991      992       +1     
============================================
  Files            99       99              
  Lines          6388     6447      +59     
  Branches        319      318       -1     
============================================
+ Hits           5093     5127      +34     
- Misses         1098     1119      +21     
- Partials        197      201       +4     
Impacted Files Coverage Δ Complexity Δ
...ud/bigtable/data/v2/stub/EnhancedBigtableStub.java 95.26% <100.00%> (+0.42%) 21.00 <3.00> (+1.00)
...d/bigtable/data/v2/models/MutateRowsException.java 75.00% <0.00%> (-8.34%) 3.00% <0.00%> (ø%)
...ata/v2/stub/readrows/FilterMarkerRowsCallable.java 83.87% <0.00%> (-6.46%) 2.00% <0.00%> (ø%)
...able/admin/v2/BaseBigtableInstanceAdminClient.java 57.07% <0.00%> (-3.14%) 56.00% <0.00%> (ø%)
...igtable/admin/v2/BaseBigtableTableAdminClient.java 58.18% <0.00%> (-1.98%) 67.00% <0.00%> (ø%)
.../admin/v2/stub/BigtableTableAdminStubSettings.java 94.26% <0.00%> (ø) 36.00% <0.00%> (ø%)
...min/v2/stub/BigtableInstanceAdminStubSettings.java 96.05% <0.00%> (ø) 33.00% <0.00%> (ø%)
...ble/data/v2/stub/EnhancedBigtableStubSettings.java 95.15% <0.00%> (+0.04%) 20.00% <0.00%> (ø%)
...d/bigtable/data/v2/stub/readrows/StateMachine.java 89.58% <0.00%> (+1.98%) 15.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 67cbcf9...5d32c60. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

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

igorbernstein2
igorbernstein2 suggested changes May 1, 2020
View reviewed changes

@igorbernstein2 igorbernstein2 left a comment

Copy link
Copy Markdown
Contributor

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.

This code is a bit hard to follow can we reorg it a bit?

ServerStreamingCallable<ReadRowsRequest,RowT> createBaseCallable(settings, adapter)

  • create the base chain with retries and row stitching

ServerStreamingCallable<ReadRowsRequest, RowT> createReadRowsRawCallable(adapter)

  • calls baseCallable
  • adds Context

createReadRowsCallable(adapter)

  • calls baseCallable
  • adds ReadRowsUserCallable
  • adds tracing + metrics
  • adds context

createReadRowsCallable(adapter)

  • calls baseCallable
  • adds ReadRowsUserCallable
  • first()
  • adds tracing + metrics
  • adds context

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread ...loud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStub.java Outdated
*
* <p>NOTE: the caller is responsible for adding tracing & metrics.
*/
public <RowT> ServerStreamingCallable<ReadRowsRequest, RowT> createReadRowsRawCallable(

@igorbernstein2 igorbernstein2 May 1, 2020

Copy link
Copy Markdown
Contributor

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.

Please mark this as BetaApi and add a disclaimer that this method might be removed in the future

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread ...loud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStub.java Outdated
*
* <p>NOTE: the caller is responsible for adding tracing & metrics.
*/
public <RowT> ServerStreamingCallable<ReadRowsRequest, RowT> createReadRowsBaseCallable(

@igorbernstein2 igorbernstein2 May 1, 2020

Copy link
Copy Markdown
Contributor

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.

This should not be public

Sorry, something went wrong.

Uh oh!

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

All reactions
@rahulKQL
chore: reorganized createReadRows callable methods
5d32c60
With this commit, the public createReadRowsCallable() would refer to single createReadRowsBaseCallable.
igorbernstein2
igorbernstein2 approved these changes May 11, 2020
View reviewed changes

@igorbernstein2 igorbernstein2 left a comment

Copy link
Copy Markdown
Contributor

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

Sorry, something went wrong.

Uh oh!

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

All reactions
@rahulKQL
rahulKQL merged commit 394efe4 into googleapis:master May 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@kolea2 kolea2 Awaiting requested review from kolea2
1 more reviewer
@igorbernstein2 igorbernstein2 igorbernstein2 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

No one assigned

Labels

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.

Expose new API for ReadRows in EnhanceBigtableStub

Uh oh!

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

3 participants

@rahulKQL @igorbernstein2 @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.