-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Bigtable: Add createUnsafe factory method in Mutation model #3800
Conversation
} | ||
|
||
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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -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.
This comment was marked as spam.
Sorry, something went wrong.
.setCell( | ||
"fake-family", | ||
ByteString.copyFromUtf8("fake-qualifier"), | ||
-1, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
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 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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Add createUnsafe factory method in Mutation model.