From 3b025d3fa42b6aaab3b06ab0893468d11887391b Mon Sep 17 00:00:00 2001 From: David J. Buttler Date: Wed, 30 Mar 2011 17:08:26 -0700 Subject: [PATCH] deprecate the isTableEnabled methods and point to the HBaseAdmin version of the function --- .../org/apache/hadoop/hbase/client/HTable.java | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/main/java/org/apache/hadoop/hbase/client/HTable.java b/src/main/java/org/apache/hadoop/hbase/client/HTable.java index e7f8b07..5c9310e 100644 --- a/src/main/java/org/apache/hadoop/hbase/client/HTable.java +++ b/src/main/java/org/apache/hadoop/hbase/client/HTable.java @@ -223,7 +223,9 @@ public class HTable implements HTableInterface { * @param tableName Name of table to check. * @return {@code true} if table is online. * @throws IOException if a remote or network exception occurs + * @deprecated use {@link HBaseAdmin#isTableEnabled(byte[])} */ + @Deprecated public static boolean isTableEnabled(String tableName) throws IOException { return isTableEnabled(Bytes.toBytes(tableName)); } @@ -233,7 +235,9 @@ public class HTable implements HTableInterface { * @param tableName Name of table to check. * @return {@code true} if table is online. * @throws IOException if a remote or network exception occurs + * @deprecated use {@link HBaseAdmin#isTableEnabled(byte[])} */ + @Deprecated public static boolean isTableEnabled(byte[] tableName) throws IOException { return isTableEnabled(HBaseConfiguration.create(), tableName); } @@ -244,7 +248,9 @@ public class HTable implements HTableInterface { * @param tableName Name of table to check. * @return {@code true} if table is online. * @throws IOException if a remote or network exception occurs + * @deprecated use {@link HBaseAdmin#isTableEnabled(byte[])} */ + @Deprecated public static boolean isTableEnabled(Configuration conf, String tableName) throws IOException { return isTableEnabled(conf, Bytes.toBytes(tableName)); -- 1.6.6