10BC0 [Bigtable] Overload MutationApi#setCell to accept long values by rahulKQL · Pull Request #6432 · googleapis/google-cloud-java · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@rahulKQL
Copy link
@rahulKQL rahulKQL commented Oct 3, 2019

Fixes Java-Bigtable#4

Added 4 overloaded methods in the MutationApi & added test case for the same.

@rahulKQL rahulKQL added the api: bigtable Issues related to the Bigtable API. label Oct 3, 2019
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 3, 2019
@codecov
Copy link
codecov bot commented Oct 3, 2019

Codecov Report

Merging #6432 into master will increase coverage by 0.36%.
The diff coverage is 60%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #6432      +/-   ##
============================================
+ Coverage     45.98%   46.34%   +0.36%     
- Complexity    26480    27976    +1496     
============================================
  Files          2613     2613              
  Lines        282539   287951    +5412     
  Branches      33559    33756     +197     
============================================
+ Hits         129926   133461    +3535     
- Misses       143357   144270     +913     
- Partials       9256    10220     +964
Impacted Files Coverage Δ Complexity Δ
...google/cloud/bigtable/data/v2/models/Mutation.java 86.81% <100%> (+0.76%) 27 <4> (+4) ⬆️
...gle/cloud/bigtable/data/v2/models/RowMutation.java 69.81% <50%> (-3.53%) 12 <2> (+2)
...loud/bigtable/data/v2/models/RowMutationEntry.java 70% <50%> (-5%) 12 <2> (+2)
...va/com/google/cloud/compute/v1/InstanceClient.java 55.09% <0%> (-7.79%) 147% <0%> (+36%)
...onitoring/v3/NotificationChannelServiceClient.java 64.49% <0%> (-7.13%) 43% <0%> (+10%)
...ava/com/google/cloud/compute/v1/ProjectClient.java 57.07% <0%> (-6.99%) 55% <0%> (+13%)
.../com/google/cloud/compute/v1/TargetPoolClient.java 57.73% <0%> (-6.98%) 47% <0%> (+11%)
...va/com/google/cloud/compute/v1/SnapshotClient.java 55.73% <0%> (-6.88%) 31% <0%> (+7%)
...oogle/cloud/kms/v1/KeyManagementServiceClient.java 62.88% <0%> (-6.84%) 103% <0%> (+25%)
...com/google/cloud/compute/v1/ReservationClient.java 59.14% <0%> (-6.83%) 39% <0%> (+9%)
... and 644 more

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 cd38245...7486d3c. Read the comment docs.

Copy link
@igorbernstein2 igorbernstein2 left a comment

Choose a reason for hiding this comment

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

LGTM, but please add an integration test:

setCell(..., 0x12345678)
assertThat(readRow(...).getValue()).isEqualTo(ByteString.copyFrom(new byte[] {0, 0, 0, 0, 0x12, 0x34, 0x56, 0x78})
readModifyWrite to increment
assertThat(readRow(...).getValue()).isEqualTo(ByteString.copyFrom(new byte[] {0, 0, 0, 0, 0x12, 0x34, 0x56, 0x79})

Copy link
@igorbernstein2 igorbernstein2 left a comment

Choose a reason for hiding this comment

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

LGTM

@igorbernstein2 igorbernstein2 merged commit f55bae7 into googleapis:master Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add syntactic sugar to set integers

3 participants

0