public class TestScannersFromClientSide extends Object
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 |
testScanOnReopenedRegion()
Test from client side for scan while the region is reopened
on the same region server.
|
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
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testScanBatch() throws Exception
Exception
public void testMaxResultSizeIsSetToDefault() throws Exception
Exception
public void testScannerForNotExistingTable()
public void testSmallScan() throws Exception
Exception
private void testSmallScan(org.apache.hadoop.hbase.client.Table table, boolean reversed, int rows, int columns) throws Exception
table
- reversed
- rows
- columns
- Exception
private void verifyExpectedCounts(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.client.Scan scan, int expectedRowCount, int expectedCellCount) throws Exception
Exception
public void testGetMaxResults() throws Exception
Exception
public void testScanMaxResults() throws Exception
Exception
public void testGetRowOffset() throws Exception
Exception
public void testScanOnReopenedRegion() throws Exception
Exception
public void testAsyncScannerWithSmallData() throws Exception
Exception
public void testAsyncScannerWithManyRows() throws Exception
Exception
public void testAsyncScannerWithoutCaching() throws Exception
Exception
private void testAsyncScanner(org.apache.hadoop.hbase.TableName table, int rowNumber, int familyNumber, int qualifierNumber, int caching, Consumer<Boolean> listener) throws Exception
Exception
private 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
IOException
public void testScanWithColumnsAndFilterAndVersion() throws IOException
IOException
public void testScanWithSameStartRowStopRow() throws IOException
IOException
public void testReverseScanWithFlush() throws Exception
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.