You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org> on 2015/03/18 06:45:38 UTC

[jira] [Commented] (HADOOP-11707) Add factory to create raw erasure coder

    [ https://issues.apache.org/jira/browse/HADOOP-11707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14366680#comment-14366680 ] 

Uma Maheswara Rao G commented on HADOOP-11707:
----------------------------------------------

Seems like too many factories here. :-)
How about we just instantiate the corresponding coder object from a factory based on the type passed while calling createEndoder or createDecoder api ?


> Add factory to create raw erasure coder
> ---------------------------------------
>
>                 Key: HADOOP-11707
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11707
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: io
>            Reporter: Kai Zheng
>            Assignee: Kai Zheng
>             Fix For: HDFS-7285
>
>         Attachments: HADOOP-11707-v1.patch
>
>
> We have {{RawErasureEncoder}} and {{RawErasureDecoder}} interface separately, which simplifies the implementation of raw coders. This would require to configure raw encoder and decoder respectively for a {{ErasureCoder}}, which isn't convenient. To simplify the configuration, we would have coder factory to group encoder and decoder together so only a factory class needs to be configured.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)