hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anoopsamj...@apache.org
Subject git commit: HBASE-11696 Make CombinedBlockCache resizable.
Date Tue, 19 Aug 2014 12:03:24 GMT
Repository: hbase
Updated Branches:
  refs/heads/master fd4dfb489 -> 3c13e8f3c


HBASE-11696 Make CombinedBlockCache resizable.


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

Branch: refs/heads/master
Commit: 3c13e8f3ced049431cff1f9f2c0baa92a1ca5c24
Parents: fd4dfb4
Author: anoopsjohn <anoopsamjohn@gmail.com>
Authored: Tue Aug 19 17:32:50 2014 +0530
Committer: anoopsjohn <anoopsamjohn@gmail.com>
Committed: Tue Aug 19 17:32:50 2014 +0530

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/io/hfile/CombinedBlockCache.java  | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/3c13e8f3/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CombinedBlockCache.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CombinedBlockCache.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CombinedBlockCache.java
index c89073d..cc53e60 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CombinedBlockCache.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CombinedBlockCache.java
@@ -36,7 +36,7 @@ import org.apache.hadoop.hbase.io.hfile.bucket.BucketCache;
  * 
  */
 @InterfaceAudience.Private
-public class CombinedBlockCache implements BlockCache, HeapSize {
+public class CombinedBlockCache implements ResizableBlockCache, HeapSize {
   private final LruBlockCache lruCache;
   private final BucketCache bucketCache;
   private final CombinedCacheStats combinedCacheStats;
@@ -207,4 +207,9 @@ public class CombinedBlockCache implements BlockCache, HeapSize {
   public BlockCache[] getBlockCaches() {
     return new BlockCache [] {this.lruCache, this.bucketCache};
   }
+
+  @Override
+  public void setMaxSize(long size) {
+    this.lruCache.setMaxSize(size);
+  }
 }
\ No newline at end of file


Mime
View raw message