thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugene Dzhurinsky <>
Subject Parent/child relations and serialization issues
Date Sat, 04 Feb 2012 07:14:12 GMT
Hi all!

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.
Obviously, when trying to serialize the object of type A - Thrift fails with
exception (StackOverflow in java) because of infinite calls :)

The question - is there any way to 'instruct' thrift to not try walk down the
tree of objects it has serialized yet? Or there is some workaround (maps with
keys and holding keys as references in objects or something like that)?

Thank you all in advance!

Eugene N Dzhurinsky

View raw message