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
Exception
public void testNoFilter() throws Exception
Exception
public void testPrefixFilter() throws Exception
Exception
public void testPrefixFilterWithReverseScan() throws Exception
Exception
public void testPageFilter() throws Exception
Exception
public void testPageFilterWithReverseScan() throws Exception
Exception
public void testWhileMatchFilterWithFilterRowWithReverseScan() throws Exception
Exception
public void testWhileMatchFilterWithFilterRowKeyWithReverseScan() throws Exception
Exception
public void testWhileMatchFilterWithFilterRow() throws Exception
WhileMatchFilter
works in combination with a
Filter
that uses the
Filter.filterRow()
method.
See HBASE-2258.Exception
public void test94FilterRowCompatibility() throws Exception
Exception
public void testWhileMatchFilterWithFilterRowKey() throws Exception
WhileMatchFilter
works in combination with a
Filter
that uses the
Filter.filterRowKey(Cell)
method.
See HBASE-2258.Exception
public void testWhileMatchFilterWithFilterCell() throws Exception
WhileMatchFilter
works in combination with a
Filter
that uses the Filter.filterCell(Cell)
method.
See HBASE-2258.Exception
public void testInclusiveStopFilter() throws IOException
IOException
public void testInclusiveStopFilterWithReverseScan() throws IOException
IOException
public void testQualifierFilter() throws IOException
IOException
public void testFamilyFilter() throws IOException
IOException
public void testRowFilter() throws IOException
IOException
public void testValueFilter() throws IOException
IOException
public void testSkipFilter() throws IOException
IOException
public void testFilterList() throws IOException
IOException
public void testFirstKeyOnlyFilter() throws IOException
IOException
public void testFilterListWithSingleColumnValueFilter() throws IOException
IOException
public void testFilterListWithPrefixFilter() throws IOException
IOException
public void testSingleColumnValueFilter() throws IOException
IOException
public void testColumnValueFilter() throws Exception
Exception
private void verifyScan(org.apache.hadoop.hbase.client.Scan s, long expectedRows, long expectedKeys) throws IOException
IOException
private void verifyScanNoEarlyOut(org.apache.hadoop.hbase.client.Scan s, long expectedRows, long expectedKeys) throws IOException
IOException
private void verifyScanFull(org.apache.hadoop.hbase.client.Scan s, org.apache.hadoop.hbase.KeyValue[] kvs) throws IOException
IOException
private void verifyScanFullNoValues(org.apache.hadoop.hbase.client.Scan s, org.apache.hadoop.hbase.KeyValue[] kvs, boolean useLen) throws IOException
IOException
public void testColumnPaginationFilterColumnOffset() throws Exception
Exception
public void testLatestVersionFilterWithExplicitColumn() throws Exception
Exception
public void testColumnPaginationFilter() throws Exception
Exception
public void testKeyOnlyFilter() throws Exception
Exception
public void testNestedFilterListWithSCVF() throws IOException
IOException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.