HBASE-21716 Add toStringCustomizedValues to TableDescriptor

Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
Kevin 2019-01-21 15:58:48 +08:00 committed by Duo Zhang
parent 8a7dd2de24
commit 0b81c63b1b
3 changed files with 8 additions and 0 deletions

View File

@ -495,6 +495,7 @@ public class HTableDescriptor implements TableDescriptor, Comparable<HTableDescr
* @return Name of this table and then a map of all of the column family
* descriptors (with only the non-default column family attributes)
*/
@Override
public String toStringCustomizedValues() {
return delegatee.toStringCustomizedValues();
}

View File

@ -299,6 +299,12 @@ public interface TableDescriptor {
*/
boolean isReadOnly();
/**
* @return Name of this table and then a map of all of the column family descriptors (with only
* the non-default column family attributes)
*/
String toStringCustomizedValues();
/**
* Check if any of the table's cfs' replication scope are set to
* {@link HConstants#REPLICATION_SCOPE_GLOBAL}.

View File

@ -1033,6 +1033,7 @@ public class TableDescriptorBuilder {
* @return Name of this table and then a map of all of the column family
* descriptors (with only the non-default column family attributes)
*/
@Override
public String toStringCustomizedValues() {
StringBuilder s = new StringBuilder();
s.append('\'').append(Bytes.toString(name.getName())).append('\'');