private static class TestHeapMemoryManager.BlockCacheStub extends Object implements org.apache.hadoop.hbase.io.hfile.ResizableBlockCache
Modifier and Type | Field and Description |
---|---|
(package private) long |
maxSize |
(package private) org.apache.hadoop.hbase.io.hfile.CacheStats |
stats |
private long |
testBlockSize |
Constructor and Description |
---|
BlockCacheStub(long size) |
Modifier and Type | Method and Description |
---|---|
void |
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[] |
getBlockCaches() |
long |
getBlockCount() |
long |
getCurrentDataSize() |
long |
getCurrentSize() |
long |
getDataBlockCount() |
long |
getFreeSize() |
long |
getMaxSize() |
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
org.apache.hadoop.hbase.io.hfile.CacheStats stats
long maxSize
private long testBlockSize
public BlockCacheStub(long size)
public void cacheBlock(org.apache.hadoop.hbase.io.hfile.BlockCacheKey cacheKey, org.apache.hadoop.hbase.io.hfile.Cacheable buf, boolean inMemory)
cacheBlock
in interface org.apache.hadoop.hbase.io.hfile.BlockCache
public void cacheBlock(org.apache.hadoop.hbase.io.hfile.BlockCacheKey cacheKey, org.apache.hadoop.hbase.io.hfile.Cacheable buf)
cacheBlock
in interface org.apache.hadoop.hbase.io.hfile.BlockCache
public org.apache.hadoop.hbase.io.hfile.Cacheable getBlock(org.apache.hadoop.hbase.io.hfile.BlockCacheKey cacheKey, boolean caching, boolean repeat, boolean updateCacheMetrics)
getBlock
in interface org.apache.hadoop.hbase.io.hfile.BlockCache
public boolean evictBlock(org.apache.hadoop.hbase.io.hfile.BlockCacheKey cacheKey)
evictBlock
in interface org.apache.hadoop.hbase.io.hfile.BlockCache
public int evictBlocksByHfileName(String hfileName)
evictBlocksByHfileName
in interface org.apache.hadoop.hbase.io.hfile.BlockCache
public org.apache.hadoop.hbase.io.hfile.CacheStats getStats()
getStats
in interface org.apache.hadoop.hbase.io.hfile.BlockCache
public void shutdown()
shutdown
in interface org.apache.hadoop.hbase.io.hfile.BlockCache
public long size()
size
in interface org.apache.hadoop.hbase.io.hfile.BlockCache
public long getMaxSize()
getMaxSize
in interface org.apache.hadoop.hbase.io.hfile.BlockCache
public long getFreeSize()
getFreeSize
in interface org.apache.hadoop.hbase.io.hfile.BlockCache
public long getCurrentSize()
getCurrentSize
in interface org.apache.hadoop.hbase.io.hfile.BlockCache
public long getCurrentDataSize()
getCurrentDataSize
in interface org.apache.hadoop.hbase.io.hfile.BlockCache
public long getBlockCount()
getBlockCount
in interface org.apache.hadoop.hbase.io.hfile.BlockCache
public long getDataBlockCount()
getDataBlockCount
in interface org.apache.hadoop.hbase.io.hfile.BlockCache
public void setMaxSize(long size)
setMaxSize
in interface org.apache.hadoop.hbase.io.hfile.ResizableBlockCache
public org.apache.hadoop.hbase.io.hfile.BlockCache[] getBlockCaches()
getBlockCaches
in interface org.apache.hadoop.hbase.io.hfile.BlockCache
public void setTestBlockSize(long testBlockSize)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.