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
Exception
public void testCacheEvictionSimple() throws Exception
Exception
public void testScanResistance() throws Exception
Exception
public void testMaxBlockSize() throws Exception
Exception
public void testResizeBlockCache() throws Exception
Exception
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)
private long calculateBlockSize(long maxSize, int numBlocks)
private long calculateBlockSizeDefault(long maxSize, int numBlocks)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.