Multiple keys to fetch in a Java client
sureshcnair at yahoo.com
Mon Nov 28 15:16:28 EST 2011
May be I can make my statement clear :) I store my devices values in buckets named after OS (say windows/ linux) with the device id's as keys. I want to get the devices for a list of device ids . From what I see, the fetch API signature takes in bucket name and key. (Client.fetch("windows", "D1"). Is there a way where I can get Client.fetch("windows", <Collection fo keys>?
Suresh C Nair
From: suresh chandran <sureshcnair at yahoo.com>
To: "riak-users at lists.basho.com" <riak-users at lists.basho.com>
Sent: Monday, November 28, 2011 2:53 PM
Subject: Multiple keys to fetch in a Java client
I am storing values of a devices under a particular OS. I want to fetch the list of all vallues, based on the key list. What I see if that, I can fetch the value one by one using the FETCH. Am using the HttpClient in Java. How do I go about this? Assume I am tryign to reach the same behavior like query that has "CONTAINS(key1, key2...). Is there a way to do this? or we can fetch the values only one by one. I do see that Map-reduce, makes use of the list fo keys, but am not sure if it is applicable in my case, as it ia simple fetch with collection of / list of keys.
Suresh C Nair
riak-users mailing list
riak-users at lists.basho.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the riak-users