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 n
|
void |
testGetRowOffset()
Test from client side for get with rowOffset n
|
void |
testMaxResultSizeIsSetToDefault() |
void |
testReadExpiredDataForRawScan() |
void |
testReverseScanWithFlush() |
void |
testScanBatch()
Test from client side for batch of scan n
|
void |
testScanMaxResults()
Test from client side for scan with maxResultPerCF set n
|
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 nnnnn
|
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
Exception
public static void tearDownAfterClass() throws Exception
Exception
public static Collection<Object[]> parameters()
private static boolean isSameParameterizedCluster(Class<?> registryImpl, int numHedgedReqs)
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
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 testScanRawDeleteFamilyVersion() 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
public void testScannerWithPartialResults() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.