-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[Bigtable] Overload MutationApi#setCell to accept long values #6432
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
[Bigtable] Overload MutationApi#setCell to accept long values #6432
Conversation
...s/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/Mutation.java
Show resolved
Hide resolved
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
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, 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})
...s/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/Mutation.java
Outdated
Show resolved
Hide resolved
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
Fixes Java-Bigtable#4
Added 4 overloaded methods in the
MutationApi& added test case for the same.