I am running following IndexQuery : <code> IntIndex intIndex=IntIndex.named("points");
IndexQuery iQuery = new IntRangeQuery(intIndex,"fkUsers",1100,1300); MapReduceResult resultInt=client.mapReduce(iQuery).addReducePhase(NamedErlangFunction.REDUCE_IDENTITY).execute(); Collection<ArrayList> res=resultInt.getResult(ArrayList.class); Iterator<ArrayList> it=res.iterator(); while ((it.hasNext())){ ArrayList arrayList=it.next(); Bucket bucket= client.fetchBucket(arrayList.get(0).toString()).execute(); for( int i=1;i<arrayList.size();i+=2){ IRiakObject object=bucket.fetch(arrayList.get(i).toString()).execute(); log("Query Result : " + object.getValueAsString()); } </code> I am not able to understand the exact result format *getResult* method of * MapReduceResult* class is giving. Right now It is giving* Buckets *along with *ids* Is there any better method to parse result or it depends on my query ? Also please suggest other better methods(if any) for performing such queries . -- *Rajat Mathur B.Tech (IT) Final Year IIIT Allahabad 09945990291 Find me @ Facebook <http://www.facebook.com/rajatmathurr> Follow me @ Twitter <http://www.twitter.com/Raj_Mathur>*
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com