Java client 1.1.4 and headOnly() in domain buckets

Bryan Hunt bhunt at basho.com
Tue May 12 08:33:41 EDT 2015


Hi Daniel, do you have reasons not to upgrade to the latest driver. I know
the semantics have changed somewhat. Are you running a fork of the client?
Bryan
On 12 May 2015 00:40, "Daniel Iwan" <iwan.daniel at gmail.com> wrote:

> Hi all
>
> Am I right thinking that v1.1.4 does not support headOnly() on domain
> buckets?
>
> During domain.fetch()  line 237 in
>
> https://github.com/basho/riak-java-client/blob/1.1.4/src/main/java/com/basho/riak/client/bucket/DomainBucket.java
>
> there is no check/call headOnly() on FetchMeta object.
>
>
> Code snippet
>
> public T fetch(String key) throws RiakException {
>         final FetchObject<T> fo = bucket.fetch(key, clazz)
>             .withConverter(converter)
>             .withResolver(resolver)
>             .withRetrier(retrier);
>
>         if (fetchMeta.hasR()) {
>             fo.r(fetchMeta.getR());
>         }
>
>         if (fetchMeta.hasPr()) {
>             fo.pr(fetchMeta.getPr());
>         }
>
>         if (fetchMeta.hasBasicQuorum()) {
>             fo.basicQuorum(fetchMeta.getBasicQuorum());
>         }
>
>         if (fetchMeta.hasNotFoundOk()) {
>             fo.notFoundOK(fetchMeta.getNotFoundOK());
>         }
>
>         if (fetchMeta.hasReturnDeletedVClock()) {
>             fo.returnDeletedVClock(fetchMeta.getReturnDeletedVClock());
>         }
>         return fo.execute();
>     }
>
>
>
> --
> View this message in context:
> http://riak-users.197444.n3.nabble.com/Java-client-1-1-4-and-headOnly-in-domain-buckets-tp4033042.html
> Sent from the Riak Users mailing list archive at Nabble.com.
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20150512/a28b36d9/attachment-0002.html>


More information about the riak-users mailing list