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] [Commented] (HBASE-18241) Change client.Table and client.Admin to not use HTableDescriptor
Date Mon, 26 Jun 2017 08:03:00 GMT

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

Chia-Ping Tsai commented on HBASE-18241:
----------------------------------------

v0 patch
--
*Region class*
||*Deprecated API*||*New API*||
|getTableDesc()|getTableDescriptor()|

*Table class*
||*Deprecated API*||*New API*||
|getTableDescriptor()|getDescriptor()|

*Admin class*
||*Deprecated API*||*New API*||
|getTableDescriptor(TableName)|listTableDescriptor(TableName)|
|getTableDescriptors(List<String>)|N/A|
|getTableDescriptorsByTableName(List<TableName>)|listTableDescriptors(List<TableName>)|
|listTables()|listTableDescriptors()|
|listTables(Pattern)|listTableDescriptors(Pattern)|
|listTables(String)|listTableDescriptors(String)|
|listTables(Pattern, boolean)|listTableDescriptors(Pattern, boolean)|
|listTables(String, boolean)|listTableDescriptors(String, boolean)|
|deleteTables(String)|N/A|
|deleteTables(Pattern)|N/A|
|enableTables(String)|N/A|
|enableTables(Pattern)|N/A|
|disableTables(String)|N/A|
|disableTables(Pattern)|N/A|
|modifyTable(TableName, HTableDescriptor)|modifyTable(TableDescriptor)|
|modifyTableAsync(TableName, HTableDescriptor)|modifyTableAsync(TableDescriptor)|
|listTableDescriptorsByNamespace(String)|listTableDescriptorsByNamespace(byte[])|

||*Previous API*||*New API*||
|createTable({color:red}HTableDescriptor{color})|createTable({color:red}TableDescriptor{color})|
|createTable({color:red}HTableDescriptor{color}, byte[], byte[], int)|createTable({color:red}TableDescriptor{color},
byte[], byte[], int)|
|createTable({color:red}HTableDescriptor{color}, byte[][])|createTable({color:red}TableDescriptor{color},
byte[][])|
|createTableAsync({color:red}HTableDescriptor{color}, byte[][])|createTableAsync({color:red}TableDescriptor{color},
byte[][])|

> Change client.Table and client.Admin to not use HTableDescriptor
> ----------------------------------------------------------------
>
>                 Key: HBASE-18241
>                 URL: https://issues.apache.org/jira/browse/HBASE-18241
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Biju Nair
>            Assignee: Chia-Ping Tsai
>            Priority: Critical
>             Fix For: 3.0.0, 2.0.0-alpha-2
>
>
> {{HTableDescriptor}} is deprecated and scheduled to be removed in 3.0. But [client.Table|https://github.com/apache/hbase/blob/a66d491892514fd4a188d6ca87d6260d8ae46184/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Table.java#L69]
and [client.Admin|https://github.com/apache/hbase/blob/a66d491892514fd4a188d6ca87d6260d8ae46184/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java#L198]
method {{getTableDescriptor}} returns {{HTableDescriptor}}.



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

Mime
View raw message