avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gaurav <gaurav...@gmail.com>
Subject Re: Records inside records
Date Mon, 05 Dec 2011 13:07:23 GMT
Hi Andrew,

We can certainly create schema object out of the given json. 
But when we create a Record object for this schema, how do I add record of
TYPE_B to it.

GenericData.Record type_A_record = new GenericData.Record(schema);
type_A_record.put("one", <How to create record for TYPE_B schema, as we only
have TYPE_A record?>);

Thanks,
Gaurav Nanda

--
View this message in context: http://apache-avro.679487.n3.nabble.com/Records-inside-records-tp3561179p3561348.html
Sent from the Avro - Users mailing list archive at Nabble.com.

Mime
View raw message