From a925b333c25a8e9ad9abdfd6f48aa99586b14852 Mon Sep 17 00:00:00 2001 From: huaxiangsun Date: Mon, 15 Aug 2022 09:17:10 -0700 Subject: [PATCH] HBASE-27296 Some Cell's implementation of toString() such as IndividualBytesFieldCell prints out value and tags which is too verbose (#4695) (#4703) Signed-off-by: Nick Dimiduk --- .../main/java/org/apache/hadoop/hbase/ByteBufferKeyValue.java | 2 +- .../java/org/apache/hadoop/hbase/IndividualBytesFieldCell.java | 2 +- .../java/org/apache/hadoop/hbase/io/hfile/HFileReaderImpl.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/ByteBufferKeyValue.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/ByteBufferKeyValue.java index 6c1c510ccb89..9c668c1cc3f9 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/ByteBufferKeyValue.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/ByteBufferKeyValue.java @@ -294,7 +294,7 @@ public void write(ByteBuffer buf, int offset) { @Override public String toString() { - return CellUtil.toString(this, true); + return CellUtil.toString(this, false); } @Override diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/IndividualBytesFieldCell.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/IndividualBytesFieldCell.java index 77d35db3ffbf..8601232b09d5 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/IndividualBytesFieldCell.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/IndividualBytesFieldCell.java @@ -293,6 +293,6 @@ public void setTimestamp(byte[] ts) { @Override public String toString() { - return CellUtil.toString(this, true); + return CellUtil.toString(this, false); } } diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileReaderImpl.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileReaderImpl.java index b8a201d666d6..4deee6e029d6 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileReaderImpl.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileReaderImpl.java @@ -1506,7 +1506,7 @@ public Cell getCell() { @Override public String getKeyString() { - return CellUtil.toString(getKey(), true); + return CellUtil.toString(getKey(), false); } @Override