From fa07c211ac5914ed4d5e1e5582ffae4fbd0e23ff 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 64405de28e0..60e1c575388 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(