public class TestScannersFromClientSide extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestScannersFromClientSide.LimitKVsReturnFilter |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
FAMILY |
private static org.slf4j.Logger |
LOG |
TableNameTestRule |
name |
private static byte[] |
QUALIFIER |
private static byte[] |
ROW |
private static HBaseTestingUtility |
TEST_UTIL |
private static byte[] |
VALUE |
| Constructor and Description |
|---|
TestScannersFromClientSide(Class<?> registryImpl,
int numHedgedReqs) |
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
isSameParameterizedCluster(Class<?> registryImpl,
int numHedgedReqs)
JUnit does not provide an easy way to run a hook after each parameterized run.
|
private static byte[][] |
makeNAsciiWithZeroPrefix(byte[] base,
int n) |
static Collection<Object[]> |
parameters() |
void |
setUp() |
static void |
tearDownAfterClass() |
private void |
testAsyncScanner(org.apache.hadoop.hbase.TableName table,
int rowNumber,
int familyNumber,
int qualifierNumber,
int caching,
Consumer<Boolean> listener) |
void |
testAsyncScannerWithManyRows() |
void |
testAsyncScannerWithoutCaching() |
void |
testAsyncScannerWithSmallData() |
void |
testGetMaxResults()
Test from client side for get with maxResultPerCF set
|
void |
testGetRowOffset()
Test from client side for get with rowOffset
|
void |
testMaxResultSizeIsSetToDefault() |
void |
testReadExpiredDataForRawScan() |
void |
testReverseScanWithFlush() |
void |
testScanBatch()
Test from client side for batch of scan
|
void |
testScanMaxResults()
Test from client side for scan with maxResultPerCF set
|
void |
testScannerForNotExistingTable()
Scan on not existing table should throw the exception with correct message
|
void |
testScannerWithPartialResults() |
void |
testScanOnReopenedRegion()
Test from client side for scan while the region is reopened
on the same region server.
|
void |
testScanRawDeleteFamilyVersion() |
void |
testScanWithColumnsAndFilterAndVersion() |
void |
testScanWithSameStartRowStopRow() |
void |
testSmallScan() |
private void |
testSmallScan(org.apache.hadoop.hbase.client.Table table,
boolean reversed,
int rows,
int columns)
Run through a variety of test configurations with a small scan
|
private void |
verifyExpectedCounts(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.client.Scan scan,
int expectedRowCount,
int expectedCellCount) |
(package private) static void |
verifyResult(org.apache.hadoop.hbase.client.Result result,
List<org.apache.hadoop.hbase.Cell> expKvList,
boolean toLog,
String msg) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static HBaseTestingUtility TEST_UTIL
private static byte[] ROW
private static byte[] FAMILY
private static byte[] QUALIFIER
private static byte[] VALUE
public TableNameTestRule name
public TestScannersFromClientSide(Class<?> registryImpl, int numHedgedReqs) throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic static Collection<Object[]> parameters()
private static boolean isSameParameterizedCluster(Class<?> registryImpl, int numHedgedReqs)
public void testScanBatch() throws Exception
Exceptionpublic void testMaxResultSizeIsSetToDefault() throws Exception
Exceptionpublic void testScannerForNotExistingTable()
public void testSmallScan() throws Exception
Exceptionprivate void testSmallScan(org.apache.hadoop.hbase.client.Table table, boolean reversed, int rows, int columns) throws Exception
table - reversed - rows - columns - Exceptionprivate void verifyExpectedCounts(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.client.Scan scan, int expectedRowCount, int expectedCellCount) throws Exception
Exceptionpublic void testGetMaxResults() throws Exception
Exceptionpublic void testScanMaxResults() throws Exception
Exceptionpublic void testGetRowOffset() throws Exception
Exceptionpublic void testScanRawDeleteFamilyVersion() throws Exception
Exceptionpublic void testScanOnReopenedRegion() throws Exception
Exceptionpublic void testAsyncScannerWithSmallData() throws Exception
Exceptionpublic void testAsyncScannerWithManyRows() throws Exception
Exceptionpublic void testAsyncScannerWithoutCaching() throws Exception
Exceptionprivate void testAsyncScanner(org.apache.hadoop.hbase.TableName table, int rowNumber, int familyNumber, int qualifierNumber, int caching, Consumer<Boolean> listener) throws Exception
Exceptionprivate static byte[][] makeNAsciiWithZeroPrefix(byte[] base, int n)
static void verifyResult(org.apache.hadoop.hbase.client.Result result, List<org.apache.hadoop.hbase.Cell> expKvList, boolean toLog, String msg)
public void testReadExpiredDataForRawScan() throws IOException
IOExceptionpublic void testScanWithColumnsAndFilterAndVersion() throws IOException
IOExceptionpublic void testScanWithSameStartRowStopRow() throws IOException
IOExceptionpublic void testReverseScanWithFlush() throws Exception
Exceptionpublic void testScannerWithPartialResults() throws Exception
ExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.