Package org.apache.hadoop.hbase.io.hfile
Class TestTinyLfuBlockCache
java.lang.Object
org.apache.hadoop.hbase.io.hfile.TestTinyLfuBlockCache
Tests the concurrent TinyLfuBlockCache.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate long
calculateBlockSize
(long maxSize, int numBlocks) private long
calculateBlockSizeDefault
(long maxSize, int numBlocks) private TestTinyLfuBlockCache.CachedItem[]
generateFixedBlocks
(int numBlocks, int size, String pfx) private TestTinyLfuBlockCache.CachedItem[]
generateFixedBlocks
(int numBlocks, long size, String pfx) private TestTinyLfuBlockCache.CachedItem[]
generateRandomBlocks
(int numBlocks, long maxSize) void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
-
Constructor Details
-
TestTinyLfuBlockCache
public TestTinyLfuBlockCache()
-
-
Method Details
-
testCacheSimple
- Throws:
Exception
-
testCacheEvictionSimple
- Throws:
Exception
-
testScanResistance
- Throws:
Exception
-
testMaxBlockSize
- Throws:
Exception
-
testResizeBlockCache
- Throws:
Exception
-
generateFixedBlocks
-
generateFixedBlocks
private TestTinyLfuBlockCache.CachedItem[] generateFixedBlocks(int numBlocks, long size, String pfx) -
generateRandomBlocks
-
calculateBlockSize
-
calculateBlockSizeDefault
-