Package org.apache.hadoop.hbase.filter
Class TestMultiRowRangeFilter
java.lang.Object
org.apache.hadoop.hbase.filter.TestMultiRowRangeFilter
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private byte[]
private static final org.slf4j.Logger
org.junit.rules.TestName
private int
private byte[]
private org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtil
private byte[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
assertRangesEqual
(List<org.apache.hadoop.hbase.filter.MultiRowRangeFilter.RowRange> expected, List<org.apache.hadoop.hbase.filter.MultiRowRangeFilter.RowRange> actual) private void
generateRows
(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 int
getResultsSize
(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 void
static void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
-
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
-