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 |
org.junit.rules.TestName |
name |
private static byte[] |
QUALIFIER |
private static byte[] |
ROW |
private static HBaseTestingUtility |
TEST_UTIL |
private static byte[] |
VALUE |
| Constructor and Description |
|---|
TestScannersFromClientSide() |
| Modifier and Type | Method and Description |
|---|---|
private static byte[][] |
makeNAsciiWithZeroPrefix(byte[] base,
int n) |
void |
setUp() |
static void |
setUpBeforeClass() |
void |
tearDown() |
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 final HBaseTestingUtility TEST_UTIL
private static byte[] ROW
private static byte[] FAMILY
private static byte[] QUALIFIER
private static byte[] VALUE
public org.junit.rules.TestName name
public TestScannersFromClientSide()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic 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–2020 The Apache Software Foundation. All rights reserved.