Link Walking with PB-Client.

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Link Walking with PB-Client.

vijayakumar
I learnt from the mailing list that there is no direct way to link walk on PBClient as we do with HttpClient.
Has any one implemented it on their own. If so, kindly share me the patch.

Thanks.




_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: Link Walking with PB-Client.

Russell Brown-3

On 15 Sep 2011, at 10:46, vijayakumar wrote:

> I learnt from the mailing list that there is no direct way to link walk on PBClient as we do with HttpClient.
> Has any one implemented it on their own. If so, kindly share me the patch.

You can with the 0-15-SNAPSHOT riak-java-client from master. Though it is actually implemented as 2 Map/reduce operations.

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


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: Link Walking with PB-Client.

vijayakumar
Thanks Rusell. I compiled the master code base but still I couldn't find the way to link way in pb.


On Thu, Sep 15, 2011 at 3:21 PM, Russell Brown <[hidden email]> wrote:

On 15 Sep 2011, at 10:46, vijayakumar wrote:

> I learnt from the mailing list that there is no direct way to link walk on PBClient as we do with HttpClient.
> Has any one implemented it on their own. If so, kindly share me the patch.

You can with the 0-15-SNAPSHOT riak-java-client from master. Though it is actually implemented as 2 Map/reduce operations.

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



_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: Link Walking with PB-Client.

Russell Brown-3

On 15 Sep 2011, at 14:26, vijayakumar wrote:

Thanks Rusell. I compiled the master code base but still I couldn't find the way to link way in pb.

Have a look at this test[1]. It is exactly the same for both HTTP and PB, it uses subclasses to create the clients, but codes to the interface.

Most of the code in the test is setup (to store the graph of linked objects), the pertinent code is on line 89[2]. To do this over protocol buffers just create a PB client, the test creates one here[3].

Hope that helps, let me know if it works for you.

Cheers

Russell

[2] https://github.com/basho/riak-java-client/blob/master/src/test/java/com/basho/riak/client/itest/ITestLinkWalk.java#L89



On Thu, Sep 15, 2011 at 3:21 PM, Russell Brown <[hidden email]> wrote:

On 15 Sep 2011, at 10:46, vijayakumar wrote:

> I learnt from the mailing list that there is no direct way to link walk on PBClient as we do with HttpClient.
> Has any one implemented it on their own. If so, kindly share me the patch.

You can with the 0-15-SNAPSHOT riak-java-client from master. Though it is actually implemented as 2 Map/reduce operations.

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


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


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