public class TestCacheOnWriteInSchema extends Object
HFile
cache-on-write functionality for data blocks, non-root index blocks, and
Bloom filter blocks, as specified by the column family.Modifier and Type | Class and Description |
---|---|
private static class |
TestCacheOnWriteInSchema.CacheOnWriteType |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.conf.Configuration |
conf |
private TestCacheOnWriteInSchema.CacheOnWriteType |
cowType |
private static String |
DIR |
private static byte[] |
family |
private org.apache.hadoop.fs.FileSystem |
fs |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static int |
NUM_KV |
private static int |
NUM_VALID_KEY_TYPES
The number of valid key types possible in a store file
|
private static Random |
rand |
private org.apache.hadoop.hbase.regionserver.HRegion |
region |
private org.apache.hadoop.hbase.regionserver.HStore |
store |
private static byte[] |
table |
private static HBaseTestingUtility |
TEST_UTIL |
private String |
testDescription |
private org.apache.hadoop.hbase.wal.WALFactory |
walFactory |
Constructor and Description |
---|
TestCacheOnWriteInSchema(TestCacheOnWriteInSchema.CacheOnWriteType cowType) |
Modifier and Type | Method and Description |
---|---|
private static org.apache.hadoop.hbase.KeyValue.Type |
generateKeyType(Random rand) |
static Collection<Object[]> |
getParameters() |
private void |
readStoreFile(org.apache.hadoop.fs.Path path) |
void |
setUp() |
void |
tearDown() |
void |
testCacheOnWriteInSchema() |
private void |
writeStoreFile(org.apache.hadoop.hbase.regionserver.StoreFileWriter writer) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public org.junit.rules.TestName name
private static final HBaseTestingUtility TEST_UTIL
private static byte[] table
private static byte[] family
private static final int NUM_KV
private static final int NUM_VALID_KEY_TYPES
private final TestCacheOnWriteInSchema.CacheOnWriteType cowType
private org.apache.hadoop.conf.Configuration conf
private final String testDescription
private org.apache.hadoop.hbase.regionserver.HRegion region
private org.apache.hadoop.hbase.regionserver.HStore store
private org.apache.hadoop.hbase.wal.WALFactory walFactory
private org.apache.hadoop.fs.FileSystem fs
public TestCacheOnWriteInSchema(TestCacheOnWriteInSchema.CacheOnWriteType cowType)
public static Collection<Object[]> getParameters()
public void setUp() throws IOException
IOException
public void tearDown() throws IOException
IOException
public void testCacheOnWriteInSchema() throws IOException
IOException
private void readStoreFile(org.apache.hadoop.fs.Path path) throws IOException
IOException
private static org.apache.hadoop.hbase.KeyValue.Type generateKeyType(Random rand)
private void writeStoreFile(org.apache.hadoop.hbase.regionserver.StoreFileWriter writer) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.