public class TestCacheOnWrite extends Object
HFile cache-on-write functionality for the following block
types: data blocks, non-root index blocks, and Bloom filter blocks.| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
| Constructor and Description |
|---|
TestCacheOnWrite(org.apache.hadoop.hbase.io.hfile.TestCacheOnWrite.CacheOnWriteType cowType,
org.apache.hadoop.hbase.io.compress.Compression.Algorithm compress,
boolean cacheCompressedData,
BlockCache blockCache) |
| Modifier and Type | Method and Description |
|---|---|
static void |
afterClass() |
static KeyValue.Type |
generateKeyType(Random rand) |
static Collection<Object[]> |
getParameters() |
void |
setUp() |
void |
tearDown() |
void |
testNotCachingDataBlocksDuringCompaction() |
void |
testStoreFileCacheOnWrite() |
public static final HBaseClassTestRule CLASS_RULE
public TestCacheOnWrite(org.apache.hadoop.hbase.io.hfile.TestCacheOnWrite.CacheOnWriteType cowType, org.apache.hadoop.hbase.io.compress.Compression.Algorithm compress, boolean cacheCompressedData, BlockCache blockCache)
public static Collection<Object[]> getParameters() throws IOException
IOExceptionpublic void setUp() throws IOException
IOExceptionpublic void tearDown() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static void afterClass() throws IOException
IOExceptionpublic static KeyValue.Type generateKeyType(Random rand)
public void testStoreFileCacheOnWrite() throws IOException
IOExceptionpublic void testNotCachingDataBlocksDuringCompaction() throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2007–2019 Cloudera. All rights reserved.