Comments (1)
This kinda sucks. I have not figured out a way in Thrift to store int values in a cell, as it's mutation object seems to only support string values. As far as I understand it, hbase itself supports int values.
The plan was to to.. well, be able to increment integers in an atomic matter as such that we could guarantee that the number we got back was only used once. As long as we are only able to put strings into cells then we'll not be able to generate nice sequenze with natural numbers by this atomicIncrement (please correct me if I'm wrong :-) ). Next step was to build a little id-factory-for-tables which keept track of sequences per table which in turn could be used to auto-generate the next id / key for a given table. For instance by the User table where we need some simple way if internally identify and reference a user by a small number.
I have implemented at least an increment method (found here: 99d271e), but it is not atomic (Read the comment of the method). I'll go on for now and make the id-factory-for-tables, but it's returned IDs will not be guaranteed to be unique if calls are made to it on the exactly same time..
from massive_record.
Related Issues (20)
- Supporting date/time form helpers
- embedded.destroy should also remove itself from parent collection?
- Error when using embeds_many.destroy_all
- Extend proxies with module / give it a block with logic to include
- Not detecting changes in new records
- Have been reported some issues with callbacks on embedded records HOT 2
- Returning false in ex. before_save does not short circuit save if saved through parent
- Nedsted attributes
- Limit scan to a specified timeStamp
- Query HOT 6
- Hard Dependency On Older Version of ActiveSupport in 0.2.2.rc1 & 0.2.2.rc2 HOT 4
- Inheritance and table_name HOT 3
- `IOError: closed stream` after sending an invalid query HOT 4
- What type to use for binary fields? HOT 1
- Memory leak with find operation
- Rails 3.2.2 Deprecation Warnings HOT 1
- Is this correct code? HOT 1
- Is still mantained? HOT 2
- What's the correct way to create/migrate hbase tables using this gem? HOT 4
- Dead Links in wiki HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from massive_record.