Riak auto-generated key through Java client

Riak supports automatically generated keys when storing an object:

http://wiki.basho.com/Basic-Riak-API-Operations.html :

Save a new object and assign a random key #

If your application is more likely to leave the key generation before Riak, it will issue a POST request for the bucket URL instead of the PUT for the bucket / key pair: POST / riak / bucket If you do not give Riak a "key" name after the bucket, it will know to create it for you.

Is it possible to do this when using the java client? it seems that the key should be provided when storing the object.

+4
source share
1 answer

Edited for update: Now it is available on the Java client. It was added in version 1.0.7 for clients. See: https://github.com/basho/riak-java-client/pull/168


Unfortunately ... right now, the Java client does not support this.

Someone discovered a problem for this: https://github.com/basho/riak-java-client/issues/141

I agree that it needs to be added. At the moment, we have a number of things for which the release of Riak 1.2 has a slightly higher priority, but I hope to work on it and add it in the near future.

+3
source

All Articles