avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: mixing types using reflection
Date Tue, 18 Aug 2009 15:53:19 GMT
Eelco Hillenius wrote:
>> It should also work to add new schemas to the list as you write the file,
>> before adding records of each type.
> 
> How would that work? Create a new writer (and discard the old one)
> based on the union but reuse the output stream?

Glancing at the code, it looks like one can simply keep a pointer to the 
list and add elements to it, but, again, I've not yet tested this.  If 
you need to rely on this feature, we should add a unit test, to make 
sure it continues to work.

Doug

Mime
View raw message