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 org.slf4j.Logger |
LOG |
private static int |
NUM_KV |
private static int |
NUM_VALID_KEY_TYPES |
io.opentelemetry.sdk.testing.junit4.OpenTelemetryRule |
otelRule |
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) |
private static final org.slf4j.Logger LOG
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 io.opentelemetry.sdk.testing.junit4.OpenTelemetryRule otelRule
public TestPrefetch()
public void setUp() throws IOException
IOExceptionpublic void testPrefetchSetInHCDWorks()
public void testPrefetch() throws Exception
Exceptionpublic void testPrefetchRace() throws Exception
Exceptionprivate void readStoreFileLikeScanner(org.apache.hadoop.fs.Path storeFilePath) throws Exception
Exceptionprivate void readStoreFile(org.apache.hadoop.fs.Path storeFilePath) throws Exception
Exceptionprivate org.apache.hadoop.fs.Path writeStoreFile(String fname) throws IOException
IOExceptionpublic static org.apache.hadoop.hbase.KeyValue.Type generateKeyType(Random rand)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.