public class TestTinyLfuBlockCache extends Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
TestTinyLfuBlockCache.CachedItem |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
| Constructor and Description |
|---|
TestTinyLfuBlockCache() |
| Modifier and Type | Method and Description |
|---|---|
private 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 |
testCacheEvictionSimple() |
void |
testCacheSimple() |
void |
testMaxBlockSize() |
void |
testResizeBlockCache() |
void |
testScanResistance() |
public static final HBaseClassTestRule CLASS_RULE
public TestTinyLfuBlockCache()
public void testCacheSimple() throws Exception
Exceptionpublic void testCacheEvictionSimple() throws Exception
Exceptionpublic void testScanResistance() throws Exception
Exceptionpublic void testMaxBlockSize() throws Exception
Exceptionpublic void testResizeBlockCache() throws Exception
Exceptionprivate 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)
private long calculateBlockSize(long maxSize, int numBlocks)
private long calculateBlockSizeDefault(long maxSize, int numBlocks)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.