riak java client

sergey lunserv at yandex.ru
Wed Nov 16 11:13:08 EST 2011


Thanks Russell,
ok,
I useDefaultRiakClient ( userName = "user1", userInfo = 
"{"email":"email at email.com","pass":"123123"}" ):
riakObject = RiakObjectBuilder.newBuilder("users", 
userName).withContentType("application/json").withValue(userInfo).build
and store:
client.fetchBucket("users").execute.store(riakObject).execute
in result I have in store:
Content Type application/json;charset=UTF-8
but value as: 
{"value":"eyJlbWFpbCI6ImVtYWlsQGVtYWlsLmNvbSIsInBhc3MiOiIxMjMxMjMifQ==","lastModified":null,"contentType":"application/json;charset=utf-8","bucket":"users","vtag":null,"links":[],"vclock":null,"valueAsString":"{\"email\":\"email at email.com\",\"pass\":\"123123\"}","vclockAsString":null,"meta":{}}

how to make value just as {"email":"email at email.com","pass":"123123"}?





More information about the riak-users mailing list