public abstract class AbstractTestAsyncTableScan extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.hadoop.hbase.client.AsyncConnection |
ASYNC_CONN |
protected static int |
COUNT |
protected static byte[] |
CQ1 |
protected static byte[] |
CQ2 |
protected static byte[] |
FAMILY |
protected static org.apache.hadoop.hbase.TableName |
TABLE_NAME |
protected static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
AbstractTestAsyncTableScan() |
Modifier and Type | Method and Description |
---|---|
private void |
assertResultEquals(org.apache.hadoop.hbase.client.Result result,
int i) |
protected List<org.apache.hadoop.hbase.client.Result> |
convertFromBatchResult(List<org.apache.hadoop.hbase.client.Result> results) |
protected static org.apache.hadoop.hbase.client.Scan |
createBatchScan() |
protected static org.apache.hadoop.hbase.client.Scan |
createBatchSmallResultSizeScan() |
protected static org.apache.hadoop.hbase.client.Scan |
createNormalScan() |
protected abstract org.apache.hadoop.hbase.client.Scan |
createScan() |
protected static org.apache.hadoop.hbase.client.Scan |
createSmallResultSizeScan() |
protected abstract List<org.apache.hadoop.hbase.client.Result> |
doScan(org.apache.hadoop.hbase.client.Scan scan) |
protected static org.apache.hadoop.hbase.client.AsyncTable<?> |
getRawTable() |
private static List<org.apache.hadoop.hbase.util.Pair<String,Supplier<org.apache.hadoop.hbase.client.Scan>>> |
getScanCreator() |
protected static List<Object[]> |
getScanCreatorParams() |
protected static org.apache.hadoop.hbase.client.AsyncTable<?> |
getTable() |
protected static List<Object[]> |
getTableAndScanCreatorParams() |
private static List<org.apache.hadoop.hbase.util.Pair<String,Supplier<org.apache.hadoop.hbase.client.AsyncTable<?>>>> |
getTableCreator() |
static void |
setUp() |
static void |
tearDown() |
private void |
testReversedScan(int start,
boolean startInclusive,
int stop,
boolean stopInclusive,
int limit) |
void |
testReversedScanAll() |
void |
testReversedScanAtRegionBoundary() |
void |
testReversedScanWithLimit() |
void |
testReversedScanWithLimitGreaterThanActualCount() |
void |
testReversedScanWithStartKeyAndStopKey() |
void |
testReverseScanNoStopKey() |
private void |
testScan(int start,
boolean startInclusive,
int stop,
boolean stopInclusive,
int limit) |
void |
testScanAll() |
void |
testScanAtRegionBoundary() |
void |
testScanNoStopKey() |
void |
testScanWithLimit() |
void |
testScanWithLimitGreaterThanActualCount() |
void |
testScanWithStartKeyAndStopKey() |
void |
testScanWrongColumnFamily() |
protected static final HBaseTestingUtility TEST_UTIL
protected static org.apache.hadoop.hbase.TableName TABLE_NAME
protected static byte[] FAMILY
protected static byte[] CQ1
protected static byte[] CQ2
protected static int COUNT
protected static org.apache.hadoop.hbase.client.AsyncConnection ASYNC_CONN
public AbstractTestAsyncTableScan()
protected static org.apache.hadoop.hbase.client.Scan createNormalScan()
protected static org.apache.hadoop.hbase.client.Scan createBatchScan()
protected static org.apache.hadoop.hbase.client.Scan createSmallResultSizeScan()
protected static org.apache.hadoop.hbase.client.Scan createBatchSmallResultSizeScan()
protected static org.apache.hadoop.hbase.client.AsyncTable<?> getRawTable()
protected static org.apache.hadoop.hbase.client.AsyncTable<?> getTable()
private static List<org.apache.hadoop.hbase.util.Pair<String,Supplier<org.apache.hadoop.hbase.client.Scan>>> getScanCreator()
protected static List<Object[]> getScanCreatorParams()
private static List<org.apache.hadoop.hbase.util.Pair<String,Supplier<org.apache.hadoop.hbase.client.AsyncTable<?>>>> getTableCreator()
protected static List<Object[]> getTableAndScanCreatorParams()
protected abstract org.apache.hadoop.hbase.client.Scan createScan()
protected abstract List<org.apache.hadoop.hbase.client.Result> doScan(org.apache.hadoop.hbase.client.Scan scan) throws Exception
Exception
protected final List<org.apache.hadoop.hbase.client.Result> convertFromBatchResult(List<org.apache.hadoop.hbase.client.Result> results)
public void testScanAll() throws Exception
Exception
private void assertResultEquals(org.apache.hadoop.hbase.client.Result result, int i)
public void testReversedScanAll() throws Exception
Exception
public void testScanNoStopKey() throws Exception
Exception
public void testReverseScanNoStopKey() throws Exception
Exception
public void testScanWrongColumnFamily() throws Exception
Exception
private void testScan(int start, boolean startInclusive, int stop, boolean stopInclusive, int limit) throws Exception
Exception
private void testReversedScan(int start, boolean startInclusive, int stop, boolean stopInclusive, int limit) throws Exception
Exception
public void testScanWithStartKeyAndStopKey() throws Exception
Exception
public void testReversedScanWithStartKeyAndStopKey() throws Exception
Exception
public void testScanAtRegionBoundary() throws Exception
Exception
public void testReversedScanAtRegionBoundary() throws Exception
Exception
public void testScanWithLimit() throws Exception
Exception
public void testScanWithLimitGreaterThanActualCount() throws Exception
Exception
public void testReversedScanWithLimit() throws Exception
Exception
public void testReversedScanWithLimitGreaterThanActualCount() throws Exception
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.