-
Notifications
You must be signed in to change notification settings - Fork 163
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
checkAndPut feature request #66
Comments
Happybase is limited to what the Thrift API exposes (it just wraps it in a clean and flexible way), so if the functionality you're looking for is not in the Thrift API (look at the upstream |
It is in the thrift interface, perhaps the one included in Happybase is older?
|
Ah, your first comment mentioned:
Yes, upstream may have a newer version. To get this into Happybase, the following needs to be done:
|
FYI, I'd be willing to add this to HappyBase, but without further discussion and cooperation it's not going to happen... |
I started digging in the code myself however had a lot of work come up. The checkAndPut interface is useful for a type of optimistic locking. Using atomic counters can simulate this so I have an interim (less efficient) solution. With your comment about not working with hbase now I didn't think you would be interested. |
The function is in the Thrift interface, so it is easy for me to add once the API at the Python side is settled. What are your thoughts about a clean API for this? |
I have a use case where I only want to put a cell value if it differs from the current value. It would be ideal to use the Thrift |
no. if there were you would've been able to see it here. i am not actively working on this. |
It doesn't appear to be in the thift interface however there is a checkAndPut function which is useful for those "atomic" operations. I haven't delved to deep, do you think it would possible to implement?
The text was updated successfully, but these errors were encountered: