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
Modifier and TypeFieldDescriptionboolean
boolean
static final HBaseClassTestRule
private static byte[]
private static byte[]
private static byte[]
boolean
private static org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate List<org.apache.hadoop.hbase.client.Result>
assertAndCreateCompleteResults
(List<org.apache.hadoop.hbase.client.Result> results) private void
assertResultEquals
(org.apache.hadoop.hbase.client.Result result, int i) private org.apache.hadoop.hbase.client.Scan
private List<org.apache.hadoop.hbase.client.Result>
doScan
(org.apache.hadoop.hbase.client.Scan scan) params()
static void
setUp()
static void
tearDown()
private void
testReversedScan
(int start, boolean startInclusive, int stop, boolean stopInclusive, int limit) void
void
void
private void
testScan
(int start, boolean startInclusive, int stop, boolean stopInclusive, int limit) void
void
void
-
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
-