From afc2cdbaffca6cb1f8495451a0b0940ad1fc4be0 Mon Sep 17 00:00:00 2001 From: BELUGA BEHR Date: Mon, 8 Jan 2018 17:06:21 +0800 Subject: [PATCH] HBASE-19684 BlockCacheKey toString Performance Signed-off-by: zhangduo --- .../java/org/apache/hadoop/hbase/io/hfile/BlockCacheKey.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheKey.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheKey.java index 66cf2bbf304..58d5c00d2c5 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheKey.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheKey.java @@ -68,7 +68,7 @@ public class BlockCacheKey implements HeapSize, java.io.Serializable { @Override public String toString() { - return String.format("%s_%d", hfileName, offset); + return this.hfileName + '_' + this.offset; } public static final long FIXED_OVERHEAD = ClassSize.align(