Package org.apache.hadoop.hbase.client
Class TestScannersFromClientSide
java.lang.Object
org.apache.hadoop.hbase.client.FromClientSideTestBase
org.apache.hadoop.hbase.client.TestScannersFromClientSide
@Tag("org.apache.hadoop.hbase.testclassification.LargeTests") @Tag("org.apache.hadoop.hbase.testclassification.ClientTests")
public class TestScannersFromClientSide
extends FromClientSideTestBase
A client-side test, mostly testing scanners with various parameters. Parameterized on different
registry implementations.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.client.FromClientSideTestBase
FAMILY, INVALID_FAMILY, numHedgedReqs, QUALIFIER, registryImpl, ROW, SLAVES, tableName, TEST_UTIL, VALUE -
Constructor Summary
ConstructorsConstructorDescriptionTestScannersFromClientSide(Class<? extends org.apache.hadoop.hbase.client.ConnectionRegistry> registryImpl, int numHedgedReqs) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvoidTest from client side for get with maxResultPerCF setvoidTest from client side for get with rowOffsetvoidvoidvoidvoidvoidTest from client side for batch of scanvoidTest from client side for scan with maxResultPerCF setvoidScan on not existing table should throw the exception with correct messagevoidvoidTest from client side for scan while the region is reopened on the same region server.voidvoidvoidvoidprivate voidtestSmallScan(org.apache.hadoop.hbase.client.Table table, boolean reversed, int rows, int columns) Run through a variety of test configurations with a small scanprivate voidverifyExpectedCounts(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.client.Scan scan, int expectedRowCount, int expectedCellCount) (package private) static voidverifyResult(org.apache.hadoop.hbase.client.Result result, List<org.apache.hadoop.hbase.Cell> expKvList, boolean toLog, String msg) Methods inherited from class org.apache.hadoop.hbase.client.FromClientSideTestBase
assertDoubleResult, assertEmptyResult, assertIncrementKey, assertKey, assertNResult, assertNResult, assertNullResult, assertNumKeys, assertRowCount, assertSingleResult, assertSingleResult, assertSingleResult, buildScanner, createScanWithRowFilter, createScanWithRowFilter, deleteColumns, equals, getAllVersionsAndVerify, getClientConf, getConnection, getNumberOfRows, getSingleScanResult, getTestNull, getTestNull, getVerifySingleColumn, getVerifySingleEmpty, getVersionAndVerify, getVersionAndVerifyMissing, getVersionRangeAndVerify, getVersionRangeAndVerifyGreaterThan, initialize, makeN, makeNAscii, makeNBig, makeStamps, parameters, putRows, scanAllVersionsAndVerify, scanTestNull, scanTestNull, scanVerifySingleColumn, scanVerifySingleEmpty, scanVersionAndVerify, scanVersionAndVerifyMissing, scanVersionRangeAndVerify, scanVersionRangeAndVerifyGreaterThan, setUp, singleRowGetTest, singleRowScanTest, splitTable, tearDown, tearDownAfterClass
-
Field Details
-
LOG
-
-
Constructor Details
-
TestScannersFromClientSide
public TestScannersFromClientSide(Class<? extends org.apache.hadoop.hbase.client.ConnectionRegistry> registryImpl, int numHedgedReqs)
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
testScanBatch
Test from client side for batch of scan- Throws:
Exception
-
testMaxResultSizeIsSetToDefault
- Throws:
Exception
-
testScannerForNotExistingTable
Scan on not existing table should throw the exception with correct message- Throws:
Exception
-
testSmallScan
- Throws:
Exception
-
testSmallScan
private void testSmallScan(org.apache.hadoop.hbase.client.Table table, boolean reversed, int rows, int columns) throws Exception Run through a variety of test configurations with a small scan- Throws:
Exception
-
verifyExpectedCounts
private void verifyExpectedCounts(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.client.Scan scan, int expectedRowCount, int expectedCellCount) throws Exception - Throws:
Exception
-
testGetMaxResults
Test from client side for get with maxResultPerCF set- Throws:
Exception
-
testScanMaxResults
Test from client side for scan with maxResultPerCF set- Throws:
Exception
-
testGetRowOffset
Test from client side for get with rowOffset- Throws:
Exception
-
testRawScanExpiredCell
- Throws:
Exception
-
testScanRawDeleteFamilyVersion
- Throws:
Exception
-
testScanOnReopenedRegion
Test from client side for scan while the region is reopened on the same region server.- Throws:
Exception
-
verifyResult
static void verifyResult(org.apache.hadoop.hbase.client.Result result, List<org.apache.hadoop.hbase.Cell> expKvList, boolean toLog, String msg) -
testReadExpiredDataForRawScan
- Throws:
IOException
-
testScanWithColumnsAndFilterAndVersion
- Throws:
IOException
-
testScanWithSameStartRowStopRow
- Throws:
IOException
-
testReverseScanWithFlush
- Throws:
Exception
-
testScannerWithPartialResults
- Throws:
Exception
-