Hi Brian, Thanks for the clarification!
Kaspar On Jul 23, 2012 6:17 PM, "Brian Roach" <[email protected]> wrote: > Hi Kaspar, > > In your first example, you're trying to permanently change the bucket's r > parameter; createBucket() returns a WriteBucket which when executed writes > these values to Riak. We currently don't have support for this in the > protobuf API. > > In your DomainBucket example you're setting the r value for the individual > read operations (which is supported via PB), rather than bucket parameter > itself. It gets passed to the underlying StoreObject. > > Thanks, > Brian Roach > > > On Jul 21, 2012, at 6:45 AM, Kaspar Thommen wrote: > > > Hi, > > > > I'm confused about the r-value when using the Java API. When I call: > > > > Bucket bucket = > RiakFactory.pbcClient().createBucket("myBucket").r(2).execute(); > > > > I get the following exception: > > > > com.basho.riak.client.bucket.UnsupportedPropertyException: r not > supported for PB > > at > com.basho.riak.client.bucket.WriteBucket.httpOnly(WriteBucket.java:539) > > at com.basho.riak.client.bucket.WriteBucket.r(WriteBucket.java:332) > > > > However, when I run this: > > > > DomainBucket<MyDomainObject> myDomainBucket = > DomainBucket.builder(RiakFactory.pbcClient().createBucket("myBucket").execute(), > MyDomainObject.class).r(2).build(); > > > > and then later call any of the CRUT operations on that domain bucket I > get no exception. Why would I get it on the low-level Bucket API but not on > the high-level DomainBucket API? > > > > Thanks, > > Kaspar > > > > _______________________________________________ > > riak-users mailing list > > [email protected] > > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > >
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
