-Re: default write value in schema?
Lewis John Mcgibbney 2014-02-19, 23:44
+1 we do this in Gora.
Please note that there are some overheads with using the builders...
"namely Avro objects can be created either by invoking a constructor
directly or by using a builder. Unlike constructors, builders will
automatically set any default values specified in the schema. Additionally,
builders validate the data as it set, whereas objects constructed directly
will not cause an error until the object is serialized. However, using
constructors directly generally offers better performance, as builders
create a copy of the datastructure before it is written."
On Wed, Feb 19, 2014 at 5:39 PM, Christophe Taton <[EMAIL PROTECTED]>wrote: