thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Riley <mikeri...@yelirekim.com>
Subject Re: Doubt about thrift
Date Sun, 10 Jun 2012 04:00:57 GMT
You're looking for the "map" type, which seems to be well supported for the
languages where there is an analogous commonly used type for an associative
array or hashmap.

~Mike

On Sat, Jun 9, 2012 at 8:03 AM, Anand Hegde <anandghegde@gmail.com> wrote:

> I am trying to understand thrift.
>
> I want to convert a hash to thrift object, is that possible? ( just like
> how you convert a hash to json or yaml )
>
> If yes, can you show me how this example hash will look like in thrift
> format?
>
>    a = {:first_key=>
>        [{:x=>"some_x",
>          :y=>"some_y"
>          }], :second_key=> "some other value"}
>
> are there any standard methods that will do this for me in ruby? (just like
> .to_json and .to_yaml)
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message