From e652891ce1d43ede7f5a36f4bc8feb260d243cce Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Fri, 11 Jul 2008 17:24:39 +0000 Subject: [PATCH] HBASE-742 Rename getMetainfo in HTable as getTableDescriptor git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@676031 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 3 ++- src/java/org/apache/hadoop/hbase/client/HTable.java | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 78b69071417..5aa41d68376 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -178,6 +178,8 @@ Trunk (unreleased changes) HBASE-734 scan '.META.', {LIMIT => 10} crashes (Izaak Rubin via Stack) HBASE-736 Should have HTable.deleteAll(String row) and HTable.deleteAll(Text row) (Jean-Daniel Cryans via Stack) + HBASE-740 ThriftServer getting table names incorrectly (Tim Sell via Stack) + HBASE-742 Rename getMetainfo in HTable as getTableDescriptor IMPROVEMENTS HBASE-559 MR example job to count table rows @@ -280,7 +282,6 @@ Trunk (unreleased changes) (Jean-Daniel Cryans via Stack) HBASE-730 On startup, rinse STARTCODE and SERVER from .META. (Jean-Daniel Cryans via Stack) - HBASE-740 ThriftServer getting table names incorrectly (Tim Sell via Stack) NEW FEATURES HBASE-47 Option to set TTL for columns in hbase diff --git a/src/java/org/apache/hadoop/hbase/client/HTable.java b/src/java/org/apache/hadoop/hbase/client/HTable.java index 75d867bc581..9971bab603e 100644 --- a/src/java/org/apache/hadoop/hbase/client/HTable.java +++ b/src/java/org/apache/hadoop/hbase/client/HTable.java @@ -233,9 +233,16 @@ public class HTable { * @return table metadata * @throws IOException */ - // Why is this deprecated? What should be used instead? St.Ack @Deprecated public HTableDescriptor getMetadata() throws IOException { + return getTableDescriptor(); + } + + /** + * @return table metadata + * @throws IOException + */ + public HTableDescriptor getTableDescriptor() throws IOException { return this.connection.getHTableDescriptor(this.tableName); }