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
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.slf4j.Loggerorg.junit.rules.TestName -
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) private StringtableOfTwoListsOfByteArrays(String label1, List<byte[]> listOfBytes1, String label2, List<byte[]> listOfBytes2) voidprivate 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
-
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
-