Re: Java client 1.1.4 and headOnly() in domain buckets
Hey Daniel, It appears that the domain buckets api does not support headOnly(). That api was written to be a higher-level abstraction around a common usage, so it abstracted that idea of head vs object data away. If you need that support, I would use the regular bucket methods instead. Thanks, Alex On Tue, May 12, 2015 at 9:15 AM, Daniel Iwan iwan.dan...@gmail.com wrote: We are using official 1.1.4 which is the latest recommended with Riak 1.3 we have installed. Upgrade to Riak 1.4 is not possible at the moment. D. -- View this message in context: http://riak-users.197444.n3.nabble.com/Java-client-1-1-4-and-headOnly-in-domain-buckets-tp4033042p4033048.html Sent from the Riak Users mailing list archive at Nabble.com. ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Re: Java client 1.1.4 and headOnly() in domain buckets
Hi Alex It appears that the domain buckets api does not support headOnly(). That api was written to be a higher-level abstraction around a common usage, so it abstracted that idea of head vs object data away. I think it may be quite useful functionality anyway, to check the existence of a key. This is what I'm using it for to avoid loading big objects from leveldb. Can you confirm if that operation does not read data from the backend or is there any other better way to check existence of the key? If you need that support, I would use the regular bucket methods instead. That's what I ended up doing although it's not convenient to have two bucket instances configured differently to access data in one way or another i.e. writing through DomainBucket, checking keys through regular bucket. D. -- View this message in context: http://riak-users.197444.n3.nabble.com/Java-client-1-1-4-and-headOnly-in-domain-buckets-tp4033042p4033056.html Sent from the Riak Users mailing list archive at Nabble.com. ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Re: Java client 1.1.4 and headOnly() in domain buckets
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.dan...@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 FetchObjectT 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@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Re: Java client 1.1.4 and headOnly() in domain buckets
We are using official 1.1.4 which is the latest recommended with Riak 1.3 we have installed. Upgrade to Riak 1.4 is not possible at the moment. D. -- View this message in context: http://riak-users.197444.n3.nabble.com/Java-client-1-1-4-and-headOnly-in-domain-buckets-tp4033042p4033048.html Sent from the Riak Users mailing list archive at Nabble.com. ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Java client 1.1.4 and headOnly() in domain buckets
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 FetchObjectT 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@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com