This is an automated email from the ASF dual-hosted git repository.
zhangduo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/master by this push:
new 2504311 HBASE-21716 Add toStringCustomizedValues to TableDescriptor
2504311 is described below
commit 250431144f43239da274d314c60b6f6fdc55e894
Author: Kevin <[email protected]>
AuthorDate: Mon Jan 21 15:58:48 2019 +0800
HBASE-21716 Add toStringCustomizedValues to TableDescriptor
Signed-off-by: Duo Zhang <[email protected]>
---
.../src/main/java/org/apache/hadoop/hbase/HTableDescriptor.java | 1 +
.../main/java/org/apache/hadoop/hbase/client/TableDescriptor.java | 6 ++++++
.../java/org/apache/hadoop/hbase/client/TableDescriptorBuilder.java | 1 +
3 files changed, 8 insertions(+)
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 e239966..3c4cfc7 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
@@ -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();
}
diff --git
a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/TableDescriptor.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/TableDescriptor.java
index 82e08c3..6173ac4 100644
---
a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/TableDescriptor.java
+++
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/TableDescriptor.java
@@ -285,6 +285,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}.
* @return {@code true} if we have, otherwise {@code false}.
diff --git
a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/TableDescriptorBuilder.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/TableDescriptorBuilder.java
index 22c71c1..4c32c84 100644
---
a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/TableDescriptorBuilder.java
+++
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/TableDescriptorBuilder.java
@@ -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('\'');