From 0bf933b0686c78601f95c580ff7436918c4efcfe Mon Sep 17 00:00:00 2001 From: Viraj Jasani Date: Sun, 12 Jan 2020 16:52:51 -0800 Subject: [PATCH] HBASE-23662 : Keep HCD constructor until shell usages are replaced --- .../apache/hadoop/hbase/HColumnDescriptor.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/HColumnDescriptor.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/HColumnDescriptor.java index c0c8dfec3646..db2b4f53627d 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/HColumnDescriptor.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/HColumnDescriptor.java @@ -101,6 +101,21 @@ public class HColumnDescriptor implements ColumnFamilyDescriptor, Comparable: + * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0 + * (HBASE-18433). + * Use {@link ColumnFamilyDescriptorBuilder#of(String)}. + */ + @Deprecated + public HColumnDescriptor(final String familyName) { + this(Bytes.toBytes(familyName)); + } + /** * Construct a column descriptor specifying only the family name * The other attributes are defaulted.