thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hector Yuen" <...@alum.mit.edu>
Subject Re: Recursive data structures
Date Sun, 26 Oct 2008 19:10:21 GMT
hello, I am also interested in that, I have been in the need to transport
hashes of hashes

{'a':'b', 'b':{'c':'d'}}

So far the only thing I have accomplished is to store the hashes as blobs,
but this cannot be transported between languages

Is it possible to do something like that?

-h

On Sun, Oct 26, 2008 at 6:01 AM, Leon Mergen <l.p.mergen@solatis.com> wrote:

> Hello,
>
>
> I can imagine this being asked before, but I have a little problem: I need
> to use Thrift to transport recursive (tree-like) data structures. Is this at
> all possible ? Have any efforts been made to implement this functionality ?
>
> To illustrate the use case, this is an example of what I'm trying to
> achieve:
>
>
> struct node {
>        1:string id,
>        2:map <string, node> children
> }
>
>
> And, ofcourse, Thrift generates the error "Type "node" has not been
> defined".
>
> Any thoughts ?
>
>
> Regards,
>
> Leon Mergen
>



-- 
-h

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