Victor created PARQUET-1562:
-------------------------------

             Summary: ParquetWriter.Builder (and subclasses) instances are hard 
to reuse
                 Key: PARQUET-1562
                 URL: https://issues.apache.org/jira/browse/PARQUET-1562
             Project: Parquet
          Issue Type: Improvement
          Components: parquet-mr
    Affects Versions: 1.10.1
            Reporter: Victor


Hi,

The builders to create ParquetWriter and AvroParquetWriter are very useful, but 
unfortunately their instance are very hard to reuse when you want to build 
multiple instance of ParquetWriter for different files but similar settings.

This is a shame because that's one of the concern solved by the builder 
pattern: from one builder you can build multiple things with similar parameters.

It would be useful if either:
 * it was possible to create a builder from a pre-existing builder (except for 
the file name)
 * it was possible to change the file name specified in the builder (and not 
have it definable only via constructor of the builder).

This would allow people to pass a set of options in the form of a builder to an 
object responsible of generically instantiating a PaquetWriter for multiple 
files for example.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to