public class TestScannerFromBucketCache extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
org.apache.hadoop.conf.Configuration |
conf |
private static org.slf4j.Logger |
LOG |
private int |
MAX_VERSIONS |
org.junit.rules.TestName |
name |
(package private) org.apache.hadoop.hbase.regionserver.HRegion |
region |
private org.apache.hadoop.hbase.TableName |
tableName |
private HBaseTestingUtility |
test_util |
(package private) byte[] |
val |
| Constructor and Description |
|---|
TestScannerFromBucketCache() |
| Modifier and Type | Method and Description |
|---|---|
(package private) String |
getName() |
private static org.apache.hadoop.hbase.regionserver.HRegion |
initHRegion(org.apache.hadoop.hbase.TableName tableName,
byte[] startKey,
byte[] stopKey,
String callingMethod,
org.apache.hadoop.conf.Configuration conf,
HBaseTestingUtility test_util,
boolean isReadOnly,
byte[]... families) |
private static org.apache.hadoop.hbase.regionserver.HRegion |
initHRegion(org.apache.hadoop.hbase.TableName tableName,
byte[] startKey,
byte[] stopKey,
String callingMethod,
org.apache.hadoop.conf.Configuration conf,
HBaseTestingUtility test_util,
boolean isReadOnly,
org.apache.hadoop.hbase.client.Durability durability,
org.apache.hadoop.hbase.wal.WAL wal,
byte[]... families) |
private static org.apache.hadoop.hbase.regionserver.HRegion |
initHRegion(org.apache.hadoop.hbase.TableName tableName,
String callingMethod,
org.apache.hadoop.conf.Configuration conf,
HBaseTestingUtility test_util,
byte[]... families) |
private List<org.apache.hadoop.hbase.Cell> |
insertData(byte[] row1,
byte[] qf1,
byte[] qf2,
byte[] fam1,
long ts1,
long ts2,
long ts3,
boolean withVal) |
private List<org.apache.hadoop.hbase.Cell> |
performScan(byte[] row1,
byte[] fam1) |
private void |
setUp(boolean useBucketCache) |
void |
tearDown() |
void |
testBasicScanWithLRUCache() |
void |
testBasicScanWithOffheapBucketCache() |
void |
testBasicScanWithOffheapBucketCacheWithMBB() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public org.junit.rules.TestName name
org.apache.hadoop.hbase.regionserver.HRegion region
private HBaseTestingUtility test_util
public org.apache.hadoop.conf.Configuration conf
private final int MAX_VERSIONS
byte[] val
private org.apache.hadoop.hbase.TableName tableName
public TestScannerFromBucketCache()
private void setUp(boolean useBucketCache) throws IOException
IOExceptionpublic void testBasicScanWithLRUCache() throws IOException
IOExceptionpublic void testBasicScanWithOffheapBucketCache() throws IOException
IOExceptionpublic void testBasicScanWithOffheapBucketCacheWithMBB() throws IOException
IOExceptionprivate List<org.apache.hadoop.hbase.Cell> insertData(byte[] row1, byte[] qf1, byte[] qf2, byte[] fam1, long ts1, long ts2, long ts3, boolean withVal) throws IOException
IOExceptionprivate List<org.apache.hadoop.hbase.Cell> performScan(byte[] row1, byte[] fam1) throws IOException
IOExceptionprivate static org.apache.hadoop.hbase.regionserver.HRegion initHRegion(org.apache.hadoop.hbase.TableName tableName, String callingMethod, org.apache.hadoop.conf.Configuration conf, HBaseTestingUtility test_util, byte[]... families) throws IOException
IOExceptionprivate static org.apache.hadoop.hbase.regionserver.HRegion initHRegion(org.apache.hadoop.hbase.TableName tableName, byte[] startKey, byte[] stopKey, String callingMethod, org.apache.hadoop.conf.Configuration conf, HBaseTestingUtility test_util, boolean isReadOnly, byte[]... families) throws IOException
IOExceptionprivate static org.apache.hadoop.hbase.regionserver.HRegion initHRegion(org.apache.hadoop.hbase.TableName tableName, byte[] startKey, byte[] stopKey, String callingMethod, org.apache.hadoop.conf.Configuration conf, HBaseTestingUtility test_util, boolean isReadOnly, org.apache.hadoop.hbase.client.Durability durability, org.apache.hadoop.hbase.wal.WAL wal, byte[]... families) throws IOException
tableName - startKey - stopKey - callingMethod - conf - isReadOnly - families - HBaseTestingUtility.closeRegionAndWAL(HRegion)
when done.IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.