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
Exceptionprotected final List<org.apache.hadoop.hbase.client.Result> convertFromBatchResult(List<org.apache.hadoop.hbase.client.Result> results)
public void testScanAll() throws Exception
Exceptionprivate void assertResultEquals(org.apache.hadoop.hbase.client.Result result, int i)
public void testReversedScanAll() throws Exception
Exceptionpublic void testScanNoStopKey() throws Exception
Exceptionpublic void testReverseScanNoStopKey() throws Exception
Exceptionpublic void testScanWrongColumnFamily() throws Exception
Exceptionprivate void testScan(int start, boolean startInclusive, int stop, boolean stopInclusive, int limit) throws Exception
Exceptionprivate void testReversedScan(int start, boolean startInclusive, int stop, boolean stopInclusive, int limit) throws Exception
Exceptionpublic void testScanWithStartKeyAndStopKey() throws Exception
Exceptionpublic void testReversedScanWithStartKeyAndStopKey() throws Exception
Exceptionpublic void testScanAtRegionBoundary() throws Exception
Exceptionpublic void testReversedScanAtRegionBoundary() throws Exception
Exceptionpublic void testScanWithLimit() throws Exception
Exceptionpublic void testScanWithLimitGreaterThanActualCount() throws Exception
Exceptionpublic void testReversedScanWithLimit() throws Exception
Exceptionpublic void testReversedScanWithLimitGreaterThanActualCount() throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.