public class TestFilter extends Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
TestFilter.OldTestFilter
The following filter simulates a pre-0.96 filter where filterRow() is defined while
hasFilterRow() returns false
|
static class |
TestFilter.SlowScanFilter
Filter which makes sleeps for a second between each row of a scan.
|
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private long |
colsPerRow |
private static byte[][] |
FAMILIES |
private static byte[][] |
FAMILIES_1 |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
(package private) byte[][] |
NEW_FAMILIES |
private long |
numRows |
private static byte[][] |
QUALIFIERS_FIVE |
private static byte[][] |
QUALIFIERS_FOUR |
private static byte[][] |
QUALIFIERS_ONE |
private static byte[][] |
QUALIFIERS_THREE |
private static byte[][] |
QUALIFIERS_TWO |
private org.apache.hadoop.hbase.regionserver.HRegion |
region |
private static byte[][] |
ROWS_FOUR |
private static byte[][] |
ROWS_ONE |
private static byte[][] |
ROWS_THREE |
private static byte[][] |
ROWS_TWO |
private static HBaseTestingUtility |
TEST_UTIL |
private static byte[][] |
VALUES |
| Constructor and Description |
|---|
TestFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
tearDown() |
void |
test94FilterRowCompatibility()
The following test is to ensure old(such as hbase0.94) filterRow() can be correctly fired in
0.96+ code base.
|
void |
testColumnPaginationFilter() |
void |
testColumnPaginationFilterColumnOffset() |
void |
testColumnValueFilter() |
void |
testFamilyFilter() |
void |
testFilterList() |
void |
testFilterListWithPrefixFilter() |
void |
testFilterListWithSingleColumnValueFilter() |
void |
testFirstKeyOnlyFilter() |
void |
testInclusiveStopFilter() |
void |
testInclusiveStopFilterWithReverseScan() |
void |
testKeyOnlyFilter() |
void |
testLatestVersionFilterWithExplicitColumn() |
void |
testNestedFilterListWithSCVF() |
void |
testNoFilter() |
void |
testPageFilter() |
void |
testPageFilterWithReverseScan() |
void |
testPrefixFilter() |
void |
testPrefixFilterWithReverseScan() |
void |
testQualifierFilter() |
void |
testRegionScannerReseek() |
void |
testRowFilter() |
void |
testSingleColumnValueFilter() |
void |
testSkipFilter() |
void |
testValueFilter() |
void |
testWhileMatchFilterWithFilterCell()
Tests the the
WhileMatchFilter works in combination with a
Filter that uses the Filter.filterCell(Cell) method. |
void |
testWhileMatchFilterWithFilterRow()
Tests the the
WhileMatchFilter works in combination with a
Filter that uses the
Filter.filterRow() method. |
void |
testWhileMatchFilterWithFilterRowKey()
Tests the the
WhileMatchFilter works in combination with a
Filter that uses the
Filter.filterRowKey(Cell) method. |
void |
testWhileMatchFilterWithFilterRowKeyWithReverseScan() |
void |
testWhileMatchFilterWithFilterRowWithReverseScan() |
private void |
verifyScan(org.apache.hadoop.hbase.client.Scan s,
long expectedRows,
long expectedKeys) |
private void |
verifyScanFull(org.apache.hadoop.hbase.client.Scan s,
org.apache.hadoop.hbase.KeyValue[] kvs) |
private void |
verifyScanFullNoValues(org.apache.hadoop.hbase.client.Scan s,
org.apache.hadoop.hbase.KeyValue[] kvs,
boolean useLen) |
private void |
verifyScanNoEarlyOut(org.apache.hadoop.hbase.client.Scan s,
long expectedRows,
long expectedKeys) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private org.apache.hadoop.hbase.regionserver.HRegion region
private static final HBaseTestingUtility TEST_UTIL
public org.junit.rules.TestName name
private static final byte[][] ROWS_ONE
private static final byte[][] ROWS_TWO
private static final byte[][] ROWS_THREE
private static final byte[][] ROWS_FOUR
private static final byte[][] FAMILIES
private static final byte[][] FAMILIES_1
private static final byte[][] QUALIFIERS_ONE
private static final byte[][] QUALIFIERS_TWO
private static final byte[][] QUALIFIERS_THREE
private static final byte[][] QUALIFIERS_FOUR
private static final byte[][] QUALIFIERS_FIVE
private static final byte[][] VALUES
byte[][] NEW_FAMILIES
private long numRows
private long colsPerRow
public TestFilter()
public void testRegionScannerReseek() throws Exception
Exceptionpublic void testNoFilter() throws Exception
Exceptionpublic void testPrefixFilter() throws Exception
Exceptionpublic void testPrefixFilterWithReverseScan() throws Exception
Exceptionpublic void testPageFilter() throws Exception
Exceptionpublic void testPageFilterWithReverseScan() throws Exception
Exceptionpublic void testWhileMatchFilterWithFilterRowWithReverseScan() throws Exception
Exceptionpublic void testWhileMatchFilterWithFilterRowKeyWithReverseScan() throws Exception
Exceptionpublic void testWhileMatchFilterWithFilterRow() throws Exception
WhileMatchFilter works in combination with a
Filter that uses the
Filter.filterRow() method.
See HBASE-2258.Exceptionpublic void test94FilterRowCompatibility() throws Exception
Exceptionpublic void testWhileMatchFilterWithFilterRowKey() throws Exception
WhileMatchFilter works in combination with a
Filter that uses the
Filter.filterRowKey(Cell) method.
See HBASE-2258.Exceptionpublic void testWhileMatchFilterWithFilterCell() throws Exception
WhileMatchFilter works in combination with a
Filter that uses the Filter.filterCell(Cell) method.
See HBASE-2258.Exceptionpublic void testInclusiveStopFilter() throws IOException
IOExceptionpublic void testInclusiveStopFilterWithReverseScan() throws IOException
IOExceptionpublic void testQualifierFilter() throws IOException
IOExceptionpublic void testFamilyFilter() throws IOException
IOExceptionpublic void testRowFilter() throws IOException
IOExceptionpublic void testValueFilter() throws IOException
IOExceptionpublic void testSkipFilter() throws IOException
IOExceptionpublic void testFilterList() throws IOException
IOExceptionpublic void testFirstKeyOnlyFilter() throws IOException
IOExceptionpublic void testFilterListWithSingleColumnValueFilter() throws IOException
IOExceptionpublic void testFilterListWithPrefixFilter() throws IOException
IOExceptionpublic void testSingleColumnValueFilter() throws IOException
IOExceptionpublic void testColumnValueFilter() throws Exception
Exceptionprivate void verifyScan(org.apache.hadoop.hbase.client.Scan s, long expectedRows, long expectedKeys) throws IOException
IOExceptionprivate void verifyScanNoEarlyOut(org.apache.hadoop.hbase.client.Scan s, long expectedRows, long expectedKeys) throws IOException
IOExceptionprivate void verifyScanFull(org.apache.hadoop.hbase.client.Scan s, org.apache.hadoop.hbase.KeyValue[] kvs) throws IOException
IOExceptionprivate void verifyScanFullNoValues(org.apache.hadoop.hbase.client.Scan s, org.apache.hadoop.hbase.KeyValue[] kvs, boolean useLen) throws IOException
IOExceptionpublic void testColumnPaginationFilterColumnOffset() throws Exception
Exceptionpublic void testLatestVersionFilterWithExplicitColumn() throws Exception
Exceptionpublic void testColumnPaginationFilter() throws Exception
Exceptionpublic void testKeyOnlyFilter() throws Exception
Exceptionpublic void testNestedFilterListWithSCVF() throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.