public class TestLazyDataBlockDecompression extends Object
HFileBlock
, CacheConfig
, and
LruBlockCache
.Modifier and Type | Field and Description |
---|---|
boolean |
cacheOnWrite |
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.fs.FileSystem |
fs |
private static org.slf4j.Logger |
LOG |
private static Random |
RNG |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestLazyDataBlockDecompression() |
Modifier and Type | Method and Description |
---|---|
private static void |
cacheBlocks(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.io.hfile.CacheConfig cacheConfig,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.hbase.io.hfile.HFileContext cxt)
Read all blocks from
path to populate blockCache . |
static Iterable<Object[]> |
data() |
void |
setUp() |
void |
tearDown() |
void |
testCompressionIncreasesEffectiveBlockCacheSize() |
private static void |
writeHFile(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.io.hfile.CacheConfig cc,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.hbase.io.hfile.HFileContext cxt,
int entryCount)
Write
entryCount random keyvalues to a new HFile at path . |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private org.apache.hadoop.fs.FileSystem fs
public boolean cacheOnWrite
public TestLazyDataBlockDecompression()
public void setUp() throws IOException
IOException
public void tearDown()
private static void writeHFile(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.io.hfile.CacheConfig cc, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.hbase.io.hfile.HFileContext cxt, int entryCount) throws IOException
entryCount
random keyvalues to a new HFile at path
. Returns the row bytes
of the KeyValues written, in the order they were written.IOException
private static void cacheBlocks(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.io.hfile.CacheConfig cacheConfig, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.hbase.io.hfile.HFileContext cxt) throws IOException
path
to populate blockCache
.IOException
public void testCompressionIncreasesEffectiveBlockCacheSize() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.