You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2019/01/24 06:16:29 UTC

[hbase] branch branch-2 updated: HBASE-21716 Add toStringCustomizedValues to TableDescriptor

This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2 by this push:
     new 0b81c63  HBASE-21716 Add toStringCustomizedValues to TableDescriptor
0b81c63 is described below

commit 0b81c63b1be0e6e842f5585854fbedd29219418c
Author: Kevin <pi...@gmail.com>
AuthorDate: Mon Jan 21 15:58:48 2019 +0800

    HBASE-21716 Add toStringCustomizedValues to TableDescriptor
    
    Signed-off-by: Duo Zhang <zh...@apache.org>
---
 .../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 19a5e03..db62391 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
@@ -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();
   }
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 60aee71..346e763 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
@@ -300,6 +300,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 c54b884..f69758f 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
@@ -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('\'');