Skip to content

Commit 0bf933b

Browse files
committed
HBASE-23662 : Keep HCD constructor until shell usages are replaced
1 parent 4ad12e0 commit 0bf933b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

hbase-client/src/main/java/org/apache/hadoop/hbase/HColumnDescriptor.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,21 @@ public class HColumnDescriptor implements ColumnFamilyDescriptor, Comparable<HCo
101101
public static final boolean DEFAULT_NEW_VERSION_BEHAVIOR = ColumnFamilyDescriptorBuilder.DEFAULT_NEW_VERSION_BEHAVIOR;
102102
protected final ModifyableColumnFamilyDescriptor delegatee;
103103

104+
/**
105+
* Construct a column descriptor specifying only the family name
106+
* The other attributes are defaulted.
107+
*
108+
* @param familyName Column family name. Must be 'printable' -- digit or
109+
* letter -- and may not contain a <code>:</code>
110+
* @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0
111+
* (<a href="https://issues.apache.org/jira/browse/HBASE-18433">HBASE-18433</a>).
112+
* Use {@link ColumnFamilyDescriptorBuilder#of(String)}.
113+
*/
114+
@Deprecated
115+
public HColumnDescriptor(final String familyName) {
116+
this(Bytes.toBytes(familyName));
117+
}
118+
104119
/**
105120
* Construct a column descriptor specifying only the family name
106121
* The other attributes are defaulted.

0 commit comments

Comments
 (0)