-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-22841 Add more factory functions to TimeRange #483
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
Conversation
These functions make it easier to possible to use `org.apache.hadoop.hbase.client.Table.CheckAndMutateBuilder#timeRange` with more interesting ranges, without being forced to use the deprecated constructors.
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
@@ -28,9 +28,6 @@ | |||
* <p> | |||
* Evaluated according to minStamp <= timestamp < maxStamp | |||
* or [minStamp,maxStamp) in interval notation. | |||
* <p> | |||
* Can be returned and read by clients. Should not be directly created by clients. |
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.
I think that this comment is still valid until the deprecated constructors are removed.
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.
I've added this in the committed patch.
@@ -4866,12 +4866,48 @@ public void testCheckAndMutateWithTimeRange() throws IOException { | |||
.thenPut(put); | |||
assertFalse(ok); | |||
|
|||
ok = table.checkAndMutate(ROW, FAMILY).qualifier(QUALIFIER) |
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.
Could you please add a short comment for every test what the purpose is (or move them into separate, small test cases)?
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
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.
The patch looks good to me overall. +1, please address HorizonNet's comment if necessary.. Thanks.
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
I think the patch is good enough now, plan to commit this patch to avoid the daily nosiy from hadoopQA :-) |
Oh, thanks. I was going to get to the feedback today. Should I open a follow-up pull request that addresses @HorizonNet's comment about the tests? |
@huonw no need. I've addressed that in the committed patch. Thanks for your contribution. |
Thank you for doing so! |
These functions make it easier to possible to use
org.apache.hadoop.hbase.client.Table.CheckAndMutateBuilder#timeRange
with more interesting ranges, without being forced to use the
deprecated constructors.