In Trunk, SpecificCompiler now uses a Velocity engine for templates.  You 
should be able to create your own template for the code gen with that.  It may 
need a few more minor features to do all you need (it currently generates the 
'classic' format and we don't yet have an alternate format).  




On Dec 22, 2010, at 9:17 PM, Ken Krugler wrote:

> Hi all,
> 
> I've started looking into leveraging the Avro schema definition  
> support for Cascading workflows.
> 
> Currently I manually generate a wrapper class (what we call a "Datum")  
> for a Cascading Tuple, that gives me stronger typing and support for  
> array/map types, which aren't natively supported by Cascading.
> 
> But when a Tuple (a record) has many fields, generating this wrapper  
> class becomes painful and error-prone.
> 
> So I wanted to extend the SpecificCompiler class in Avro, but alter  
> what it emits to be my target Java source for Datums.
> 
> However the SpecificCompiler class isn't set up to be extended  
> (private fields/methods), so I'm wondering if there's a better  
> approach that I'm missing.
> 
> Thanks,
> 
> -- Ken
> 
> --------------------------
> Ken Krugler
> +1 530-210-6378
> http://bixolabs.com
> e l a s t i c   w e b   m i n i n g
> 
> 
> 
> 
> 

Reply via email to