On running following query

        IntIndex intIndex;
        intIndex=IntIndex.named("points");
        IndexQuery iQuery = new IntRangeQuery(intIndex,"fkUsers",1100,1300);
        MapReduceResult result=client.mapReduce(iQuery).addMapPhase(new
NamedErlangFunction("riak_kv_mapreduce", "map_object_value")).execute();
-----> Collection<List> lists=result.getResult(List.class);
        Iterator<List> iterator = lists.iterator();
        while(iterator.hasNext()){
            String allData = iterator.next().toString();
            JSONObject jsonObject = new JSONObject(allData);
            Iterator it=jsonObject.keys();
            while (it.hasNext()){
                String key=it.next().toString();
                log("Key : "+key+"  Value : "+ jsonObject.get(key));
            }
        }

        The above code is giving :

com.basho.riak.client.convert.ConversionException:
org.codehaus.jackson.map.JsonMappingException: Can not deserialize instance
of java.util.ArrayList out of VALUE_STRING token

Am I doing anymistake in assuming what,

-----> Collection<List> lists=result.getResult(List.class);

the getResult method inthe above code is returning ?
-- 
*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

Reply via email to