Class TestSCVFWithMiniCluster
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestSCVFWithMiniCluster
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private int
private static final byte[]
private static final byte[]
private static final org.apache.hadoop.hbase.TableName
private static org.apache.hadoop.hbase.client.Table
private static final byte[]
private static final byte[]
private static org.apache.hadoop.hbase.filter.Filter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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
Test the filter by adding all columns of family A and B in the scan.void
Test the filter by adding all columns of family A in the scan.void
Test the filter by adding 2 columns of family A and 1 column of family B in the scan.void
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
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)
-
Field Details
-
CLASS_RULE
-
HBASE_TABLE_NAME
-
FAMILY_A
-
FAMILY_B
-
QUALIFIER_FOO
-
QUALIFIER_BAR
-
htable
-
scanFilter
-
expected
-
-
Constructor Details
-
TestSCVFWithMiniCluster
public TestSCVFWithMiniCluster()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
verify
- Throws:
IOException
-
scanWithAllQualifiersOfFamiliyA
Test the filter by adding all columns of family A in the scan. (OK)- Throws:
IOException
-
scanWithAllQualifiersOfBothFamilies
Test the filter by adding all columns of family A and B in the scan. (KO: row '3' without 'a:foo' qualifier is returned)- Throws:
IOException
-
scanWithSpecificQualifiers1
Test the filter by adding 2 columns of family A and 1 column of family B in the scan. (KO: row '3' without 'a:foo' qualifier is returned)- Throws:
IOException
-
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. (OK)- Throws:
IOException
-
scanWithSpecificQualifiers3
Test the filter by adding 2 columns of family A in the scan. (OK)- Throws:
IOException
-
create
private static void create(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.TableName tableName, byte[]... families) throws IOException - Throws:
IOException
-
destroy
private static void destroy(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.TableName tableName) throws IOException - Throws:
IOException
-