[
https://issues.apache.org/jira/browse/HADOOP-938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561852#action_12561852
]
Doug Cutting commented on HADOOP-938:
-------------------------------------
Another approach would be to add an open() method, and use SequenceFile.Writer
setter methods, e.g.:
SequenceFile.Writer writer = SequenceFile.createWriter(path);
writer.setCompressionType(Compress.BLOCK);
writer.setBlockSize(128*1024*1024);
writer.open();
> too many SequenceFile.createWriter() methods
> --------------------------------------------
>
> Key: HADOOP-938
> URL: https://issues.apache.org/jira/browse/HADOOP-938
> Project: Hadoop Core
> Issue Type: Improvement
> Components: io
> Reporter: Doug Cutting
>
> There are too many SequenceFile.createWriter() method signatures. This
> method has two required paramters: a Configuration and a Path. It has one
> obsolete parameter: a FileSystem. And it has five optional parameters:
> CompressionType, CompressionCodec, Progress, replication, and metadata.
> We should remove the obsolete parameter and make all optional parameters into
> setters.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.