Package org.apache.hadoop.hbase.filter
Class TestScanRowPrefix
java.lang.Object
org.apache.hadoop.hbase.filter.FilterTestingCluster
org.apache.hadoop.hbase.filter.TestScanRowPrefix
@Tag("org.apache.hadoop.hbase.testclassification.FilterTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestScanRowPrefix
extends FilterTestingCluster
Test if Scan.setStartStopRowForPrefixScan works as intended.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intcalculateWidth(String label1, List<byte[]> listOfBytes1) private StringgetStringFromList(List<byte[]> listOfBytes, int offset) private Stringprivate StringprintMultiple(char letter, int count) static voidprivate StringtableOfTwoListsOfByteArrays(String label1, List<byte[]> listOfBytes1, String label2, List<byte[]> listOfBytes2) voidtestPrefixScanning(org.junit.jupiter.api.TestInfo testInfo) private voidverifyScanResult(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
-
LOG
-
-
Constructor Details
-
TestScanRowPrefix
public TestScanRowPrefix()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
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
-