You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Enis Soztutar (JIRA)" <ji...@apache.org> on 2014/09/22 05:44:33 UTC

[jira] [Updated] (HBASE-12046) HTD/HCD setters should be builder-style

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

Enis Soztutar updated HBASE-12046:
----------------------------------
    Attachment: hbase-12046_v1.patch

Simple patch. Changed all setXX and addXX methods of HTableDescriptor and HColumnDescriptor to return declaring object together with a test for future compliance. 

> HTD/HCD setters should be builder-style
> ---------------------------------------
>
>                 Key: HBASE-12046
>                 URL: https://issues.apache.org/jira/browse/HBASE-12046
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: Enis Soztutar
>            Assignee: Enis Soztutar
>             Fix For: 2.0.0, 0.99.1
>
>         Attachments: hbase-12046_v1.patch
>
>
> Similar to Scan / Get, etc constructs, HTD and HCD setters and add'ers should return this from the method, so that objects can be constructed in a builder style: 
> {code}
> Foo foo =
>   new Foo()
>     .setBar()
>     .setBaz() 
> {code}



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