public class TestSCVFWithMiniCluster extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private int |
expected |
private static byte[] |
FAMILY_A |
private static byte[] |
FAMILY_B |
private static org.apache.hadoop.hbase.TableName |
HBASE_TABLE_NAME |
private static org.apache.hadoop.hbase.client.Table |
htable |
private static byte[] |
QUALIFIER_BAR |
private static byte[] |
QUALIFIER_FOO |
private static org.apache.hadoop.hbase.filter.Filter |
scanFilter |
Constructor and Description |
---|
TestSCVFWithMiniCluster() |
Modifier and Type | Method and Description |
---|---|
private static void |
create(org.apache.hadoop.hbase.client.Admin admin,
org.apache.hadoop.hbase.TableName tableName,
byte[]... families) |
private static void |
destroy(org.apache.hadoop.hbase.client.Admin admin,
org.apache.hadoop.hbase.TableName tableName) |
void |
scanWithAllQualifiersOfBothFamilies()
Test the filter by adding all columns of family A and B in the scan.
|
void |
scanWithAllQualifiersOfFamiliyA()
Test the filter by adding all columns of family A in the scan.
|
void |
scanWithSpecificQualifiers1()
Test the filter by adding 2 columns of family A and 1 column of family B in the scan.
|
void |
scanWithSpecificQualifiers2()
Test the filter by adding 1 column of family A (the one used in the filter) and 1 column of
family B in the scan.
|
void |
scanWithSpecificQualifiers3()
Test the filter by adding 2 columns of family A in the scan.
|
static void |
setUp() |
static void |
tearDown() |
private void |
verify(org.apache.hadoop.hbase.client.Scan scan) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.apache.hadoop.hbase.TableName HBASE_TABLE_NAME
private static final byte[] FAMILY_A
private static final byte[] FAMILY_B
private static final byte[] QUALIFIER_FOO
private static final byte[] QUALIFIER_BAR
private static org.apache.hadoop.hbase.client.Table htable
private static org.apache.hadoop.hbase.filter.Filter scanFilter
private int expected
public TestSCVFWithMiniCluster()
private void verify(org.apache.hadoop.hbase.client.Scan scan) throws IOException
IOException
public void scanWithAllQualifiersOfFamiliyA() throws IOException
IOException
public void scanWithAllQualifiersOfBothFamilies() throws IOException
IOException
public void scanWithSpecificQualifiers1() throws IOException
IOException
public void scanWithSpecificQualifiers2() throws IOException
IOException
public void scanWithSpecificQualifiers3() throws IOException
IOException
private static void create(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.TableName tableName, byte[]... families) throws IOException
IOException
private static void destroy(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.TableName tableName) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.