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 17ca37a3fca..6912ab51431 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 @@ -1434,6 +1434,7 @@ public class HColumnDescriptor implements WritableComparable * @param cfs * @return An {@link HColumnDescriptor} made from the passed in cfs */ + @Deprecated public static HColumnDescriptor convert(final ColumnFamilySchema cfs) { // Use the empty constructor so we preserve the initial values set on construction for things // like maxVersion. Otherwise, we pick up wrong values on deserialization which makes for @@ -1452,6 +1453,7 @@ public class HColumnDescriptor implements WritableComparable /** * @return Convert this instance to a the pb column family type */ + @Deprecated public ColumnFamilySchema convert() { ColumnFamilySchema.Builder builder = ColumnFamilySchema.newBuilder(); builder.setName(ByteStringer.wrap(getName())); diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/HTableDescriptor.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/HTableDescriptor.java index a6c08c387e3..d4c4c2b2613 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/HTableDescriptor.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/HTableDescriptor.java @@ -1642,6 +1642,7 @@ public class HTableDescriptor implements WritableComparable { /** * @return Convert the current {@link HTableDescriptor} into a pb TableSchema instance. */ + @Deprecated public TableSchema convert() { TableSchema.Builder builder = TableSchema.newBuilder(); builder.setTableName(ProtobufUtil.toProtoTableName(getTableName())); @@ -1667,6 +1668,7 @@ public class HTableDescriptor implements WritableComparable { * @param ts A pb TableSchema instance. * @return An {@link HTableDescriptor} made from the passed in pb ts. */ + @Deprecated public static HTableDescriptor convert(final TableSchema ts) { List list = ts.getColumnFamiliesList(); HColumnDescriptor [] hcds = new HColumnDescriptor[list.size()];