Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
HBASE-15706 HFilePrettyPrinter should print out nicely formatted tags…
…. (huaxiang sun)
  • Loading branch information
anoopsjohn committed Apr 29, 2016
1 parent d8e0322 commit 4706303
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -1184,7 +1184,7 @@ public Map<String, Object> toStringMap() {
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);
}
Expand Down
Expand Up @@ -370,7 +370,7 @@ private void scanKeysValues(Path file, KeyValueStatsCollector fileStats,
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();
Expand Down

0 comments on commit 4706303

Please sign in to comment.