public class TestDependentColumnFilter extends Object
Modifier and Type | Field and Description |
---|---|
private static byte[][] |
BAD_VALS |
static HBaseClassTestRule |
CLASS_RULE |
private static byte[][] |
FAMILIES |
private static org.slf4j.Logger |
LOG |
private static byte[] |
MATCH_VAL |
private static byte[] |
QUALIFIER |
private org.apache.hadoop.hbase.regionserver.HRegion |
region |
private static byte[][] |
ROWS |
private static long |
STAMP_BASE |
private static long[] |
STAMPS |
private static HBaseTestingUtility |
TEST_UTIL |
(package private) List<org.apache.hadoop.hbase.KeyValue> |
testVals |
Constructor and Description |
---|
TestDependentColumnFilter() |
Modifier and Type | Method and Description |
---|---|
private void |
addData() |
private List<org.apache.hadoop.hbase.KeyValue> |
makeTestVals() |
void |
setUp() |
void |
tearDown() |
void |
testFilterDropping()
Test that the filter correctly drops rows without a corresponding timestamp
|
void |
testScans()
Test scans using a DependentColumnFilter
|
void |
testToStringWithNonNullComparator() |
void |
testToStringWithNullComparator()
Test for HBASE-8794.
|
private void |
verifyScan(org.apache.hadoop.hbase.client.Scan s,
long expectedRows,
long expectedCells)
This shouldn't be confused with TestFilter#verifyScan
as expectedKeys is not the per row total, but the scan total
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final byte[][] ROWS
private static final byte[][] FAMILIES
private static final long STAMP_BASE
private static final long[] STAMPS
private static final byte[] QUALIFIER
private static final byte[][] BAD_VALS
private static final byte[] MATCH_VAL
private static final HBaseTestingUtility TEST_UTIL
private org.apache.hadoop.hbase.regionserver.HRegion region
public TestDependentColumnFilter()
private void addData() throws IOException
IOException
private List<org.apache.hadoop.hbase.KeyValue> makeTestVals()
private void verifyScan(org.apache.hadoop.hbase.client.Scan s, long expectedRows, long expectedCells) throws IOException
s
- expectedRows
- expectedCells
- IOException
public void testScans() throws Exception
Exception
public void testFilterDropping() throws Exception
Exception
public void testToStringWithNullComparator()
public void testToStringWithNonNullComparator()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.