You need to adapt this Tool for your own requirements.
You can possibly use the SchemaBuilder to build a schema @Runtime which
you would then pass to DataFileWriter.write(schema, outStream). Thats how I
would try it over then refine it for your use case. Any others ideas?
On Tue, Jul 8, 2014 at 5:10 PM, Bhuvana Bellala <
[EMAIL PROTECTED]> wrote: