Package org.apache.hadoop.hbase.filter
Class TestMultiRowRangeFilter
java.lang.Object
org.apache.hadoop.hbase.filter.TestMultiRowRangeFilter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate byte[]private static final org.slf4j.Loggerorg.junit.rules.TestNameprivate intprivate byte[]private org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtilprivate byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassertRangesEqual(List<org.apache.hadoop.hbase.filter.MultiRowRangeFilter.RowRange> expected, List<org.apache.hadoop.hbase.filter.MultiRowRangeFilter.RowRange> actual) private voidgenerateRows(int numberOfRows, org.apache.hadoop.hbase.client.Table ht, byte[] family, byte[] qf, byte[] value) private List<org.apache.hadoop.hbase.Cell>getResults(org.apache.hadoop.hbase.client.Table ht, org.apache.hadoop.hbase.client.Scan scan) private intgetResultsSize(org.apache.hadoop.hbase.client.Table ht, org.apache.hadoop.hbase.client.Scan scan) private List<org.apache.hadoop.hbase.Cell>getScanResult(byte[] startRow, byte[] stopRow, org.apache.hadoop.hbase.client.Table ht) static voidstatic voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
LOG
-
family
-
qf
-
value
-
tableName
-
numRows
-
name
-
-
Constructor Details
-
TestMultiRowRangeFilter
public TestMultiRowRangeFilter()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
testRowKeyPrefixWithEmptyPrefix
- Throws:
IOException
-
testRowKeyPrefixWithLastIncrementablePrefix
- Throws:
IOException
-
testRowKeyPrefixWithoutLastIncrementablePrefix
- Throws:
IOException
-
testRowKeyPrefixWithMergablePrefix
- Throws:
IOException
-
testRanges
- Throws:
IOException
-
testOutOfOrderScannerNextException
- Throws:
Exception
-
testMergeAndSortWithEmptyStartRow
- Throws:
IOException
-
testMergeAndSortWithEmptyStopRow
- Throws:
IOException
-
testMergeAndSortWithEmptyStartRowAndStopRow
- Throws:
IOException
-
testMultiRowRangeWithoutRange
- Throws:
IOException
-
testMultiRowRangeWithInvalidRange
- Throws:
IOException
-
testMergeAndSortWithoutOverlap
- Throws:
IOException
-
testMergeAndSortWithOverlap
- Throws:
IOException
-
testMergeAndSortWithStartRowInclusive
- Throws:
IOException
-
testMergeAndSortWithRowExclusive
- Throws:
IOException
-
testMergeAndSortWithRowInclusive
- Throws:
IOException
-
assertRangesEqual
public void assertRangesEqual(List<org.apache.hadoop.hbase.filter.MultiRowRangeFilter.RowRange> expected, List<org.apache.hadoop.hbase.filter.MultiRowRangeFilter.RowRange> actual) -
testMultiRowRangeFilterWithRangeOverlap
- Throws:
IOException
-
testMultiRowRangeFilterWithoutRangeOverlap
- Throws:
IOException
-
testMultiRowRangeFilterWithEmptyStartRow
- Throws:
IOException
-
testMultiRowRangeFilterWithEmptyStopRow
- Throws:
IOException
-
testMultiRowRangeFilterWithInclusive
- Throws:
IOException
-
testMultiRowRangeFilterWithExclusive
- Throws:
IOException
-
testMultiRowRangeWithFilterListAndOperator
- Throws:
IOException
-
testMultiRowRangeWithFilterListOrOperator
- Throws:
IOException
-
testOneRowRange
- Throws:
IOException
-
testReverseMultiRowRangeFilterWithinTable
- Throws:
IOException
-
testReverseMultiRowRangeFilterIncludingMaxRow
- Throws:
IOException
-
testReverseMultiRowRangeFilterIncludingMinRow
- Throws:
IOException
-
testReverseMultiRowRangeFilterIncludingMinAndMaxRow
- Throws:
IOException
-
generateRows
private void generateRows(int numberOfRows, org.apache.hadoop.hbase.client.Table ht, byte[] family, byte[] qf, byte[] value) throws IOException - Throws:
IOException
-
getScanResult
private List<org.apache.hadoop.hbase.Cell> getScanResult(byte[] startRow, byte[] stopRow, org.apache.hadoop.hbase.client.Table ht) throws IOException - Throws:
IOException
-
getResults
private List<org.apache.hadoop.hbase.Cell> getResults(org.apache.hadoop.hbase.client.Table ht, org.apache.hadoop.hbase.client.Scan scan) throws IOException - Throws:
IOException
-
getResultsSize
private int getResultsSize(org.apache.hadoop.hbase.client.Table ht, org.apache.hadoop.hbase.client.Scan scan) throws IOException - Throws:
IOException
-