thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Salz <>
Subject Re: Parent/child relations and serialization issues
Date Sat, 04 Feb 2012 15:47:43 GMT
> I need to pass structure A, which has structure B as children. And in
> structure B there is the reference to structure A in 'parent' field.

You cannot do it.  Thrift does not support any kind of circular structure 
definition.  You will have to "flatten" out the structure yourself.  For 
example, add a unique-id field to all structures, and then pass an array 
of ID's followed by all the structures. On the receiving side, reconstruct 
the tree.


STSM, WebSphere Appliance Architect

View raw message