DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Andy Jefferson
Reporter: Peter Rainer
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus Store HBase

ValueGenerator for strategy "increment" using table in HBase

Created: 13/Jan/11 09:16 AM   Updated: 27/Jan/11 07:54 PM   Resolved: 14/Jan/11 09:21 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 3.0.0.m1

File Attachments: 1. Zip Archive (6 kB)

Forum Thread URL:,6104_lastpage,yes
Datastore: HBase

 Description  « Hide
As suggest in the forum by Andy the code for the ValueGenerator strategy increment should be moved into version 3 because it's of use for everyone out there.
I uploaded a little enhanced version to - it would be nice if the database table for storing the increment values could be configurable, but I didn't have time up to know to find out how to access Datanucleus persistence settings, from the ValueGenerator

Sort Order: Ascending order - Click to sort in descending order
Peter Rainer added a comment - 13/Jan/11 09:17 AM
Zip of the GitHub project

Andy Jefferson added a comment - 13/Jan/11 01:17 PM
Thx. Any chance you can make this dependent on a *release* of HBase ? (i.e 0.20.x). The 0.89 are developer preview only.

Peter Rainer added a comment - 13/Jan/11 01:37 PM
Andy, the reason why I took 0.89 because it's part of Clouderas CDH3 Beta, but if you prefer I can either change it 0.90RC4 or use one of the late 0.20.x versions which already has the new API. (I think it should also work with 0.20.6 but I'd have to try it to be 100% certain)
Correct me if I'm wrong but as far as I'm concerned none of 0.20.x versions is available via maven so you'd have to resolve the dependency locally

Andy Jefferson added a comment - 13/Jan/11 02:49 PM
Just tried with 0.20.6, while it still didn't compile, it was close enough to apply, so I'll use against that. Only when they release 0.90 will I upgrade to that ... these "RC" and Beta" tags are for a reason.

Andy Jefferson added a comment - 13/Jan/11 08:01 PM
Peter, SVN trunk has your plugin - not tested yet. Hopefully I'll write some tests tomorrow and add that config that you mentioned.

Andy Jefferson added a comment - 14/Jan/11 09:21 AM
SVN trunk now supports properties usage too. Allows control over name of increment table. Allows control over initial value of values, and the allocation size

Peter Rainer added a comment - 14/Jan/11 09:29 AM
Andy, thanks I'll check it out after the weekend