Class TestHeapMemoryManager.BlockCacheStub
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestHeapMemoryManager.BlockCacheStub
- All Implemented Interfaces:
Iterable<org.apache.hadoop.hbase.io.hfile.CachedBlock>
,org.apache.hadoop.hbase.io.hfile.BlockCache
,org.apache.hadoop.hbase.io.hfile.ResizableBlockCache
- Enclosing class:
- TestHeapMemoryManager
private static class TestHeapMemoryManager.BlockCacheStub
extends Object
implements org.apache.hadoop.hbase.io.hfile.ResizableBlockCache
-
Field Summary
Modifier and TypeFieldDescription(package private) long
(package private) org.apache.hadoop.hbase.io.hfile.CacheStats
private long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheBlock
(org.apache.hadoop.hbase.io.hfile.BlockCacheKey cacheKey, org.apache.hadoop.hbase.io.hfile.Cacheable buf) void
cacheBlock
(org.apache.hadoop.hbase.io.hfile.BlockCacheKey cacheKey, org.apache.hadoop.hbase.io.hfile.Cacheable buf, boolean inMemory) boolean
evictBlock
(org.apache.hadoop.hbase.io.hfile.BlockCacheKey cacheKey) int
evictBlocksByHfileName
(String hfileName) org.apache.hadoop.hbase.io.hfile.Cacheable
getBlock
(org.apache.hadoop.hbase.io.hfile.BlockCacheKey cacheKey, boolean caching, boolean repeat, boolean updateCacheMetrics) org.apache.hadoop.hbase.io.hfile.BlockCache[]
long
long
long
long
long
long
org.apache.hadoop.hbase.io.hfile.CacheStats
getStats()
Iterator<org.apache.hadoop.hbase.io.hfile.CachedBlock>
iterator()
void
setMaxSize
(long size) void
setTestBlockSize
(long testBlockSize) void
shutdown()
long
size()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.io.hfile.BlockCache
blockFitsIntoTheCache, cacheBlock, getBlockSize, getFullyCachedFiles, isAlreadyCached, isMetaBlock, notifyFileBlockEvicted, notifyFileCachingCompleted, shouldCacheFile
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
Constructor Details
-
BlockCacheStub
-
-
Method Details
-
cacheBlock
public void cacheBlock(org.apache.hadoop.hbase.io.hfile.BlockCacheKey cacheKey, org.apache.hadoop.hbase.io.hfile.Cacheable buf, boolean inMemory) - Specified by:
cacheBlock
in interfaceorg.apache.hadoop.hbase.io.hfile.BlockCache
-
cacheBlock
public void cacheBlock(org.apache.hadoop.hbase.io.hfile.BlockCacheKey cacheKey, org.apache.hadoop.hbase.io.hfile.Cacheable buf) - Specified by:
cacheBlock
in interfaceorg.apache.hadoop.hbase.io.hfile.BlockCache
-
getBlock
public org.apache.hadoop.hbase.io.hfile.Cacheable getBlock(org.apache.hadoop.hbase.io.hfile.BlockCacheKey cacheKey, boolean caching, boolean repeat, boolean updateCacheMetrics) - Specified by:
getBlock
in interfaceorg.apache.hadoop.hbase.io.hfile.BlockCache
-
evictBlock
- Specified by:
evictBlock
in interfaceorg.apache.hadoop.hbase.io.hfile.BlockCache
-
evictBlocksByHfileName
- Specified by:
evictBlocksByHfileName
in interfaceorg.apache.hadoop.hbase.io.hfile.BlockCache
-
getStats
- Specified by:
getStats
in interfaceorg.apache.hadoop.hbase.io.hfile.BlockCache
-
shutdown
- Specified by:
shutdown
in interfaceorg.apache.hadoop.hbase.io.hfile.BlockCache
-
size
- Specified by:
size
in interfaceorg.apache.hadoop.hbase.io.hfile.BlockCache
-
getMaxSize
- Specified by:
getMaxSize
in interfaceorg.apache.hadoop.hbase.io.hfile.BlockCache
-
getFreeSize
- Specified by:
getFreeSize
in interfaceorg.apache.hadoop.hbase.io.hfile.BlockCache
-
getCurrentSize
- Specified by:
getCurrentSize
in interfaceorg.apache.hadoop.hbase.io.hfile.BlockCache
-
getCurrentDataSize
- Specified by:
getCurrentDataSize
in interfaceorg.apache.hadoop.hbase.io.hfile.BlockCache
-
getBlockCount
- Specified by:
getBlockCount
in interfaceorg.apache.hadoop.hbase.io.hfile.BlockCache
-
getDataBlockCount
- Specified by:
getDataBlockCount
in interfaceorg.apache.hadoop.hbase.io.hfile.BlockCache
-
setMaxSize
- Specified by:
setMaxSize
in interfaceorg.apache.hadoop.hbase.io.hfile.ResizableBlockCache
-
iterator
-
getBlockCaches
- Specified by:
getBlockCaches
in interfaceorg.apache.hadoop.hbase.io.hfile.BlockCache
-
setTestBlockSize
-