hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhang...@apache.org
Subject hbase git commit: HBASE-19684 BlockCacheKey toString Performance
Date Mon, 08 Jan 2018 10:03:11 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.4 5c16cc6af -> e81b88678


HBASE-19684 BlockCacheKey toString Performance

Signed-off-by: zhangduo <zhangduo@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/e81b8867
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e81b8867
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e81b8867

Branch: refs/heads/branch-1.4
Commit: e81b8867832dbc89293b557652820cf279cb01df
Parents: 5c16cc6
Author: BELUGA BEHR <dam6923@gmail.com>
Authored: Mon Jan 8 17:06:21 2018 +0800
Committer: zhangduo <zhangduo@apache.org>
Committed: Mon Jan 8 17:06:51 2018 +0800

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheKey.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/e81b8867/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheKey.java
----------------------------------------------------------------------
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 64405de..60e1c57 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(


Mime
View raw message