public class TestBlocksRead extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static org.apache.hadoop.hbase.regionserver.BloomType[] |
BLOOM_TYPE |
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.conf.Configuration |
conf |
private String |
DIR |
private static org.slf4j.Logger |
LOG |
(package private) org.apache.hadoop.hbase.regionserver.HRegion |
region |
private static HBaseTestingUtility |
TEST_UTIL |
org.junit.rules.TestName |
testName |
Constructor and Description |
---|
TestBlocksRead() |
Modifier and Type | Method and Description |
---|---|
private void |
deleteFamily(String family,
String row,
long version) |
private static byte[] |
genValue(String row,
String col,
long version) |
private static long |
getBlkAccessCount(byte[] cf) |
private org.apache.hadoop.hbase.Cell[] |
getData(String family,
String row,
List<String> columns,
int expBlocks) |
private org.apache.hadoop.hbase.Cell[] |
getData(String family,
String row,
List<String> columns,
int expBlocksRowCol,
int expBlocksRow,
int expBlocksNone) |
private org.apache.hadoop.hbase.Cell[] |
getData(String family,
String row,
String column,
int expBlocks) |
private org.apache.hadoop.hbase.Cell[] |
getData(String family,
String row,
String column,
int expBlocksRowCol,
int expBlocksRow,
int expBlocksNone) |
private org.apache.hadoop.hbase.regionserver.HRegion |
initHRegion(byte[] tableName,
String callingMethod,
org.apache.hadoop.conf.Configuration conf,
String family)
Callers must afterward call
HBaseTestingUtility.closeRegionAndWAL(HRegion) |
private org.apache.hadoop.hbase.regionserver.HRegion |
initHRegion(byte[] tableName,
String callingMethod,
org.apache.hadoop.conf.Configuration conf,
String family,
org.apache.hadoop.hbase.io.hfile.BlockCache blockCache)
Callers must afterward call
HBaseTestingUtility.closeRegionAndWAL(HRegion) |
private void |
putData(byte[] cf,
String row,
String col,
long versionStart,
long versionEnd) |
private void |
putData(String family,
String row,
String col,
long version) |
static void |
setUp() |
static void |
tearDown() |
void |
testBlocksRead()
Test # of blocks read for some simple seek cases.
|
void |
testBlocksStoredWhenCachingDisabled()
Test # of blocks read to ensure disabling cache-fill on Scan works.
|
void |
testLazySeekBlocksRead()
Test # of blocks read (targeted at some of the cases Lazy Seek optimizes).
|
void |
testLazySeekBlocksReadWithDelete() |
private static void |
verifyData(org.apache.hadoop.hbase.Cell kv,
String expectedRow,
String expectedCol,
long expectedVersion) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public org.junit.rules.TestName testName
static final org.apache.hadoop.hbase.regionserver.BloomType[] BLOOM_TYPE
org.apache.hadoop.hbase.regionserver.HRegion region
private static HBaseTestingUtility TEST_UTIL
private org.apache.hadoop.conf.Configuration conf
public TestBlocksRead()
private org.apache.hadoop.hbase.regionserver.HRegion initHRegion(byte[] tableName, String callingMethod, org.apache.hadoop.conf.Configuration conf, String family) throws IOException
HBaseTestingUtility.closeRegionAndWAL(HRegion)
IOException
private org.apache.hadoop.hbase.regionserver.HRegion initHRegion(byte[] tableName, String callingMethod, org.apache.hadoop.conf.Configuration conf, String family, org.apache.hadoop.hbase.io.hfile.BlockCache blockCache) throws IOException
HBaseTestingUtility.closeRegionAndWAL(HRegion)
IOException
private void putData(String family, String row, String col, long version) throws IOException
IOException
private void putData(byte[] cf, String row, String col, long versionStart, long versionEnd) throws IOException
IOException
private org.apache.hadoop.hbase.Cell[] getData(String family, String row, List<String> columns, int expBlocks) throws IOException
IOException
private org.apache.hadoop.hbase.Cell[] getData(String family, String row, List<String> columns, int expBlocksRowCol, int expBlocksRow, int expBlocksNone) throws IOException
IOException
private org.apache.hadoop.hbase.Cell[] getData(String family, String row, String column, int expBlocks) throws IOException
IOException
private org.apache.hadoop.hbase.Cell[] getData(String family, String row, String column, int expBlocksRowCol, int expBlocksRow, int expBlocksNone) throws IOException
IOException
private void deleteFamily(String family, String row, long version) throws IOException
IOException
private static void verifyData(org.apache.hadoop.hbase.Cell kv, String expectedRow, String expectedCol, long expectedVersion)
private static long getBlkAccessCount(byte[] cf)
public void testBlocksRead() throws Exception
Exception
public void testLazySeekBlocksRead() throws Exception
Exception
public void testBlocksStoredWhenCachingDisabled() throws Exception
Exception
public void testLazySeekBlocksReadWithDelete() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.