HBASE-21716 Add toStringCustomizedValues to TableDescriptor
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
8a7dd2de24
commit
0b81c63b1b
@ -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
|
* @return Name of this table and then a map of all of the column family
|
||||||
* descriptors (with only the non-default column family attributes)
|
* descriptors (with only the non-default column family attributes)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String toStringCustomizedValues() {
|
public String toStringCustomizedValues() {
|
||||||
return delegatee.toStringCustomizedValues();
|
return delegatee.toStringCustomizedValues();
|
||||||
}
|
}
|
||||||
|
@ -299,6 +299,12 @@ public interface TableDescriptor {
|
|||||||
*/
|
*/
|
||||||
boolean isReadOnly();
|
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
|
* Check if any of the table's cfs' replication scope are set to
|
||||||
* {@link HConstants#REPLICATION_SCOPE_GLOBAL}.
|
* {@link HConstants#REPLICATION_SCOPE_GLOBAL}.
|
||||||
|
@ -1033,6 +1033,7 @@ public class TableDescriptorBuilder {
|
|||||||
* @return Name of this table and then a map of all of the column family
|
* @return Name of this table and then a map of all of the column family
|
||||||
* descriptors (with only the non-default column family attributes)
|
* descriptors (with only the non-default column family attributes)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String toStringCustomizedValues() {
|
public String toStringCustomizedValues() {
|
||||||
StringBuilder s = new StringBuilder();
|
StringBuilder s = new StringBuilder();
|
||||||
s.append('\'').append(Bytes.toString(name.getName())).append('\'');
|
s.append('\'').append(Bytes.toString(name.getName())).append('\'');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user