« Return to Thread: [jira] Created: (HADOOP-2596) add SequenceFile.createWriter() method that takes block size as parameter

[jira] Updated: (HADOOP-2596) add SequenceFile.createWriter() method that takes block size as parameter

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View in Thread


     [ https://issues.apache.org/jira/browse/HADOOP-2596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alejandro Abdelnur updated HADOOP-2596:
---------------------------------------

    Attachment: patch2596.txt

Added a most generic createWriter() method that takes buffersize, replication and blockSize. Refactored all other methods removing duplicated logic by calling more generic signature.

Added constructors to the SequenceFile writer implementations to support the new parameters above. Refactored writer constructors to remove duplicate logic by calling more generic signature.

> add SequenceFile.createWriter() method that takes block size as parameter
> -------------------------------------------------------------------------
>
>                 Key: HADOOP-2596
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2596
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: io
>         Environment: all
>            Reporter: Alejandro Abdelnur
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: patch2596.txt
>
>
> Currently it is not possible to create a SequenceFile.Writer using a block size other than the default.
> The createWriter() method should be overloaded with a signature receiving block size as parameter should be added to the the SequenceFile class.
> With all the current signatures for this method there is a significant code duplication, if possible the createWriter() methods  should be refactored to avoid such duplication.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

 « Return to Thread: [jira] Created: (HADOOP-2596) add SequenceFile.createWriter() method that takes block size as parameter