public class TestPrefetch extends Object
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.hbase.io.hfile.BlockCache |
blockCache |
private org.apache.hadoop.hbase.io.hfile.CacheConfig |
cacheConf |
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.conf.Configuration |
conf |
private static int |
DATA_BLOCK_SIZE |
private org.apache.hadoop.fs.FileSystem |
fs |
private static int |
NUM_KV |
private static int |
NUM_VALID_KEY_TYPES |
private static Random |
RNG |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestPrefetch() |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.hbase.KeyValue.Type |
generateKeyType(Random rand) |
private void |
readStoreFile(org.apache.hadoop.fs.Path storeFilePath) |
private void |
readStoreFileLikeScanner(org.apache.hadoop.fs.Path storeFilePath)
Read a storefile in the same manner as a scanner -- using non-positional reads and
without waiting for prefetch to complete.
|
void |
setUp() |
void |
testPrefetch() |
void |
testPrefetchRace() |
void |
testPrefetchSetInHCDWorks() |
private org.apache.hadoop.fs.Path |
writeStoreFile(String fname) |
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtility TEST_UTIL
private static final int NUM_VALID_KEY_TYPES
private static final int DATA_BLOCK_SIZE
private static final int NUM_KV
private org.apache.hadoop.conf.Configuration conf
private org.apache.hadoop.hbase.io.hfile.CacheConfig cacheConf
private org.apache.hadoop.fs.FileSystem fs
private org.apache.hadoop.hbase.io.hfile.BlockCache blockCache
public TestPrefetch()
public void setUp() throws IOException
IOException
public void testPrefetchSetInHCDWorks()
public void testPrefetch() throws Exception
Exception
public void testPrefetchRace() throws Exception
Exception
private void readStoreFileLikeScanner(org.apache.hadoop.fs.Path storeFilePath) throws Exception
Exception
private void readStoreFile(org.apache.hadoop.fs.Path storeFilePath) throws Exception
Exception
private org.apache.hadoop.fs.Path writeStoreFile(String fname) throws IOException
IOException
public static org.apache.hadoop.hbase.KeyValue.Type generateKeyType(Random rand)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.