Riak returns link-walking results as nested multipart/mixed responses, even 
when there's only one phase being returned. Because it breaks it into multiple 
multipart bodies, you can easily distinguish the results of each phase.

Sean Cribbs <[email protected]>
Developer Advocate
Basho Technologies, Inc.
http://basho.com/

On Aug 3, 2010, at 6:45 AM, Akhil Kodali wrote:

> Hi,
> 
> This might be a trivial question.
> 
> Consider the following snippet from the java api repository
> WalkResponse r = riak.walk("bucket", "key", "bucket,_,1");
>     if (r.isSuccess()) {
> 
> 
>         List<? extends List<RiakObject>> steps = r.getSteps();
>         for (List<RiakObject> step : steps) {
>             for (RiakObject o : step) {
> 
> 
>                 // process the object
>             }
>         }
>     }
> 
> 
> 
> Why are there 2 nested list?
> 
> 
> Thank you
> 
> Akhil Kodali
> 
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to