hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anoopsamj...@apache.org
Subject hbase git commit: HBASE-15706 HFilePrettyPrinter should print out nicely formatted tags. (huaxiang sun)
Date Fri, 29 Apr 2016 03:54:19 GMT
Repository: hbase
Updated Branches:
  refs/heads/master d8e032279 -> 470630318


HBASE-15706 HFilePrettyPrinter should print out nicely formatted tags. (huaxiang sun)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/47063031
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/47063031
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/47063031

Branch: refs/heads/master
Commit: 47063031866e321655e63fd6c59128409c31b3b1
Parents: d8e0322
Author: anoopsjohn <anoopsamjohn@gmail.com>
Authored: Fri Apr 29 09:23:57 2016 +0530
Committer: anoopsjohn <anoopsamjohn@gmail.com>
Committed: Fri Apr 29 09:23:57 2016 +0530

----------------------------------------------------------------------
 hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java   | 2 +-
 .../java/org/apache/hadoop/hbase/io/hfile/HFilePrettyPrinter.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/47063031/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java
----------------------------------------------------------------------
diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java
index a30a24c..f741f2c 100644
--- a/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java
+++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java
@@ -1184,7 +1184,7 @@ public class KeyValue implements Cell, HeapSize, Cloneable, SettableSequenceId,
     if (tags != null) {
       List<String> tagsString = new ArrayList<String>();
       for (Tag t : tags) {
-        tagsString.add((t.getType()) + ":" + TagUtil.getValueAsString(t));
+        tagsString.add(t.toString());
       }
       stringMap.put("tag", tagsString);
     }

http://git-wip-us.apache.org/repos/asf/hbase/blob/47063031/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFilePrettyPrinter.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFilePrettyPrinter.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFilePrettyPrinter.java
index e2a698e..e9e21fe 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFilePrettyPrinter.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFilePrettyPrinter.java
@@ -370,7 +370,7 @@ public class HFilePrettyPrinter extends Configured implements Tool {
           List<Tag> tags = TagUtil.asList(cell.getTagsArray(), cell.getTagsOffset(),
               cell.getTagsLength());
           for (Tag tag : tags) {
-            System.out.print(String.format(" T[%d]: %s", i++, TagUtil.getValueAsString(tag)));
+            System.out.print(String.format(" T[%d]: %s", i++, tag.toString()));
           }
         }
         System.out.println();


Mime
View raw message