hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chia-Ping Tsai (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-18433) Create convenience methods for getting ColumnDescriptors without using builders
Date Sat, 22 Jul 2017 15:46:00 GMT

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

Chia-Ping Tsai updated HBASE-18433:
-----------------------------------
      Resolution: Fixed
    Hadoop Flags: Reviewed
          Status: Resolved  (was: Patch Available)

Commit this to branch-2 and master. [~mdrob] Thanks for the patch.

> Create convenience methods for getting ColumnDescriptors without using builders
> -------------------------------------------------------------------------------
>
>                 Key: HBASE-18433
>                 URL: https://issues.apache.org/jira/browse/HBASE-18433
>             Project: HBase
>          Issue Type: Bug
>          Components: Client
>    Affects Versions: 2.0.0-alpha-1
>            Reporter: Mike Drob
>            Assignee: Mike Drob
>             Fix For: 3.0.0, 2.0.0-alpha-2
>
>         Attachments: HBASE-18433.patch
>
>
> The old {{HColumnDescriptor(String)}} is deprecated and going away. The most straightforward
replacement for it is very wordy: {{ColumnFamilyDescriptorBuilder.newBuilder(byte \[]).build()}}
> We can provide a more inline replacement like {{ColumnFamilyDescriptor.for(String)}}
that will be useful if we do not need to actually do any modifications on it, only pass it
as an argument to something (like table descriptor operations).
> We can do the same kind of improvement for TableDescriptor, but I do not think the use
case is as helpful because usually we will want to do something to the modifiable TableDescriptor,
and I have not seen many use cases where it is passed as an argument unadorned.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message