Package org.apache.hadoop.hbase.filter
Class TestScanRowPrefix
java.lang.Object
org.apache.hadoop.hbase.filter.FilterTestingCluster
org.apache.hadoop.hbase.filter.TestScanRowPrefix
Test if Scan.setStartStopRowForPrefixScan works as intended.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
org.junit.rules.TestName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate int
calculateWidth
(String label1, List<byte[]> listOfBytes1) private String
getStringFromList
(List<byte[]> listOfBytes, int offset) private String
private String
printMultiple
(char letter, int count) private String
tableOfTwoListsOfByteArrays
(String label1, List<byte[]> listOfBytes1, String label2, List<byte[]> listOfBytes2) void
private void
verifyScanResult
(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.client.Scan scan, List<byte[]> expectedKeys, String message) Methods inherited from class org.apache.hadoop.hbase.filter.FilterTestingCluster
createTable, openTable, setUp, tearDown
-
Field Details
-
CLASS_RULE
-
LOG
-
name
-
-
Constructor Details
-
TestScanRowPrefix
public TestScanRowPrefix()
-
-
Method Details
-
testPrefixScanning
- Throws:
IOException
-
verifyScanResult
private void verifyScanResult(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.client.Scan scan, List<byte[]> expectedKeys, String message) -
printMultiple
-
tableOfTwoListsOfByteArrays
-
printLine
-
calculateWidth
-
getStringFromList
-