Package org.apache.hadoop.hbase.io.hfile
Class TestScannerFromBucketCache
java.lang.Object
org.apache.hadoop.hbase.io.hfile.TestScannerFromBucketCache
@Tag("org.apache.hadoop.hbase.testclassification.RegionServerTests") @Tag("org.apache.hadoop.hbase.testclassification.SmallTests")
public class TestScannerFromBucketCache
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.conf.Configurationprivate static final org.slf4j.Loggerprivate final int(package private) org.apache.hadoop.hbase.regionserver.HRegionprivate org.apache.hadoop.hbase.TableNameprivate HBaseTestingUtil(package private) byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) StringgetName(org.junit.jupiter.api.TestInfo testInfo) private static org.apache.hadoop.hbase.regionserver.HRegioninitHRegion(org.apache.hadoop.hbase.TableName tableName, byte[] startKey, byte[] stopKey, String callingMethod, org.apache.hadoop.conf.Configuration conf, HBaseTestingUtil testUtil, boolean isReadOnly, byte[]... families) private static org.apache.hadoop.hbase.regionserver.HRegioninitHRegion(org.apache.hadoop.hbase.TableName tableName, String callingMethod, org.apache.hadoop.conf.Configuration conf, HBaseTestingUtil test_util, byte[]... families) private List<org.apache.hadoop.hbase.ExtendedCell>insertData(byte[] row1, byte[] qf1, byte[] qf2, byte[] fam1, long ts1, long ts2, long ts3, boolean withVal) private List<org.apache.hadoop.hbase.ExtendedCell>performScan(byte[] row1, byte[] fam1) private voidsetUp(boolean useBucketCache, org.junit.jupiter.api.TestInfo testInfo) voidtearDown()voidtestBasicScanWithLRUCache(org.junit.jupiter.api.TestInfo testInfo) voidtestBasicScanWithOffheapBucketCache(org.junit.jupiter.api.TestInfo testInfo) voidtestBasicScanWithOffheapBucketCacheWithMBB(org.junit.jupiter.api.TestInfo testInfo)
-
Field Details
-
Constructor Details
-
TestScannerFromBucketCache
public TestScannerFromBucketCache()
-
-
Method Details
-
setUp
private void setUp(boolean useBucketCache, org.junit.jupiter.api.TestInfo testInfo) throws IOException - Throws:
IOException
-
tearDown
- Throws:
Exception
-
getName
-
testBasicScanWithLRUCache
@Test public void testBasicScanWithLRUCache(org.junit.jupiter.api.TestInfo testInfo) throws IOException - Throws:
IOException
-
testBasicScanWithOffheapBucketCache
@Test public void testBasicScanWithOffheapBucketCache(org.junit.jupiter.api.TestInfo testInfo) throws IOException - Throws:
IOException
-
testBasicScanWithOffheapBucketCacheWithMBB
@Test public void testBasicScanWithOffheapBucketCacheWithMBB(org.junit.jupiter.api.TestInfo testInfo) throws IOException - Throws:
IOException
-
insertData
private List<org.apache.hadoop.hbase.ExtendedCell> insertData(byte[] row1, byte[] qf1, byte[] qf2, byte[] fam1, long ts1, long ts2, long ts3, boolean withVal) throws IOException - Throws:
IOException
-
performScan
private List<org.apache.hadoop.hbase.ExtendedCell> performScan(byte[] row1, byte[] fam1) throws IOException - Throws:
IOException
-
initHRegion
private static org.apache.hadoop.hbase.regionserver.HRegion initHRegion(org.apache.hadoop.hbase.TableName tableName, String callingMethod, org.apache.hadoop.conf.Configuration conf, HBaseTestingUtil test_util, byte[]... families) throws IOException - Throws:
IOException
-
initHRegion
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, HBaseTestingUtil testUtil, boolean isReadOnly, byte[]... families) throws IOException - Throws:
IOException
-