HBASE-21716 Add toStringCustomizedValues to TableDescriptor
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
d187af00ca
commit
250431144f
@ -496,6 +496,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();
|
||||
}
|
||||
|
@ -284,6 +284,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}.
|
||||
|
@ -1003,6 +1003,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('\'');
|
||||
|
Loading…
x
Reference in New Issue
Block a user