Package org.apache.hadoop.hbase.client
Class TestScannersFromClientSide2
java.lang.Object
org.apache.hadoop.hbase.client.TestScannersFromClientSide2
Testcase for newly added feature in HBASE-17143, such as startRow and stopRow
inclusive/exclusive, limit for rows, etc.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanstatic final HBaseClassTestRuleprivate static byte[]private static byte[]private static byte[]booleanprivate static org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate List<org.apache.hadoop.hbase.client.Result>assertAndCreateCompleteResults(List<org.apache.hadoop.hbase.client.Result> results) private voidassertResultEquals(org.apache.hadoop.hbase.client.Result result, int i) private org.apache.hadoop.hbase.client.Scanprivate List<org.apache.hadoop.hbase.client.Result>doScan(org.apache.hadoop.hbase.client.Scan scan) params()static voidsetUp()static voidtearDown()private voidtestReversedScan(int start, boolean startInclusive, int stop, boolean stopInclusive, int limit) voidvoidvoidprivate voidtestScan(int start, boolean startInclusive, int stop, boolean stopInclusive, int limit) voidvoidvoid
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
TABLE_NAME
-
FAMILY
-
CQ1
-
CQ2
-
batch
-
smallResultSize
-
allowPartial
-
-
Constructor Details
-
TestScannersFromClientSide2
public TestScannersFromClientSide2()
-
-
Method Details
-
params
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
createScan
-
assertResultEquals
-
doScan
private List<org.apache.hadoop.hbase.client.Result> doScan(org.apache.hadoop.hbase.client.Scan scan) throws IOException - Throws:
IOException
-
assertAndCreateCompleteResults
private List<org.apache.hadoop.hbase.client.Result> assertAndCreateCompleteResults(List<org.apache.hadoop.hbase.client.Result> results) throws IOException - Throws:
IOException
-
testScan
private void testScan(int start, boolean startInclusive, int stop, boolean stopInclusive, int limit) throws Exception - Throws:
Exception
-
testReversedScan
private void testReversedScan(int start, boolean startInclusive, int stop, boolean stopInclusive, int limit) throws Exception - Throws:
Exception
-
testScanWithLimit
- Throws:
Exception
-
testScanWithLimitGreaterThanActualCount
- Throws:
Exception
-
testReversedScanWithLimit
- Throws:
Exception
-
testReversedScanWithLimitGreaterThanActualCount
- Throws:
Exception
-
testStartRowStopRowInclusive
- Throws:
Exception
-
testReversedStartRowStopRowInclusive
- Throws:
Exception
-