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

Bigtable: Add createUnsafe factory method in Mutation model #3800

Merged

Conversation

ajaaym
Copy link
Contributor

@ajaaym ajaaym commented Oct 10, 2018

Add createUnsafe factory method in Mutation model.

@ajaaym ajaaym requested a review from a team as a code owner October 10, 2018 20:04
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 10, 2018
@chingor13 chingor13 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 10, 2018
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 10, 2018
}

private Mutation() {}
/**
* Creates Mutation object which allows setCell operation to set server side timestamp.

This comment was marked as spam.

This comment was marked as spam.

@@ -102,7 +114,9 @@ public Mutation setCell(
Validations.validateFamily(familyName);
Preconditions.checkNotNull(qualifier, "qualifier can't be null.");
Preconditions.checkNotNull(value, "value can't be null.");
Preconditions.checkArgument(timestamp != -1, "Serverside timestamps are not supported");
if (!allowServersideTimestamp) {
Preconditions.checkArgument(timestamp != -1, "Serverside timestamps are not supported");

This comment was marked as spam.

.setCell(
"fake-family",
ByteString.copyFromUtf8("fake-qualifier"),
-1,

This comment was marked as spam.

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 assuming the doc change

/**
* Creates new instance of Mutation object.
*
* @return Mutation object.

This comment was marked as spam.

This comment was marked as spam.

@chingor13 chingor13 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 10, 2018
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 10, 2018
@chingor13 chingor13 merged commit 8548be5 into googleapis:master Oct 10, 2018
@chingor13 chingor13 mentioned this pull request Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants