print readable tags

This commit is contained in:
2023-02-13 19:34:52 +01:00
parent bd8ab49b71
commit 0d4078b59c
2 changed files with 5 additions and 2 deletions

View File

@@ -58,7 +58,9 @@ public class Doc {
@Override @Override
public String toString() { public String toString() {
return "Doc [partitionId=" + partitionId + ", tags=" + tags + ", rootBlockNumber=" + rootBlockNumber + "]";
return "Doc [partitionId=" + partitionId + ", tags=" + Tags.STRING_COMPRESSOR.asString(tags)
+ ", rootBlockNumber=" + rootBlockNumber + "]";
} }
} }

View File

@@ -37,7 +37,8 @@ public class Entry {
public String toString() { public String toString() {
final OffsetDateTime date = Instant.ofEpochMilli(epochMilli).atOffset(ZoneOffset.UTC); final OffsetDateTime date = Instant.ofEpochMilli(epochMilli).atOffset(ZoneOffset.UTC);
return date.format(DateTimeFormatter.ISO_ZONED_DATE_TIME) + " = " + value + " (" + tags + ")"; return date.format(DateTimeFormatter.ISO_ZONED_DATE_TIME) + " = " + value + " ("
+ Tags.STRING_COMPRESSOR.asString(tags) + ")";
} }
@Override @Override