HBASE-15605 Remove PB references from HCD and HTD for 2.0 (Ram_
This commit is contained in:
parent
ff835d5ae6
commit
e407e1e81d
|
@ -1434,6 +1434,7 @@ public class HColumnDescriptor implements WritableComparable<HColumnDescriptor>
|
|||
* @param cfs
|
||||
* @return An {@link HColumnDescriptor} made from the passed in <code>cfs</code>
|
||||
*/
|
||||
@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<HColumnDescriptor>
|
|||
/**
|
||||
* @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()));
|
||||
|
|
|
@ -1642,6 +1642,7 @@ public class HTableDescriptor implements WritableComparable<HTableDescriptor> {
|
|||
/**
|
||||
* @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<HTableDescriptor> {
|
|||
* @param ts A pb TableSchema instance.
|
||||
* @return An {@link HTableDescriptor} made from the passed in pb <code>ts</code>.
|
||||
*/
|
||||
@Deprecated
|
||||
public static HTableDescriptor convert(final TableSchema ts) {
|
||||
List<ColumnFamilySchema> list = ts.getColumnFamiliesList();
|
||||
HColumnDescriptor [] hcds = new HColumnDescriptor[list.size()];
|
||||
|
|
Loading…
Reference in New Issue