Package org.apache.hadoop.hbase.filter
Class FilterTestingCluster
java.lang.Object
org.apache.hadoop.hbase.filter.FilterTestingCluster
- Direct Known Subclasses:
TestFilterWithScanLimits
,TestScanRowPrefix
By using this class as the super class of a set of tests you will have a HBase testing cluster
available that is very suitable for writing tests for scanning and filtering against.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Admin
private static List<org.apache.hadoop.hbase.TableName>
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
createTable
(org.apache.hadoop.hbase.TableName tableName, String columnFamilyName) private static void
private static void
initialize
(org.apache.hadoop.conf.Configuration conf) protected static org.apache.hadoop.hbase.client.Table
openTable
(org.apache.hadoop.hbase.TableName tableName) static void
setUp()
static void
tearDown()
-
Field Details
-
TEST_UTIL
-
admin
-
createdTables
-
-
Constructor Details
-
FilterTestingCluster
public FilterTestingCluster()
-
-
Method Details
-
createTable
protected static void createTable(org.apache.hadoop.hbase.TableName tableName, String columnFamilyName) -
openTable
protected static org.apache.hadoop.hbase.client.Table openTable(org.apache.hadoop.hbase.TableName tableName) throws IOException - Throws:
IOException
-
deleteTables
-
initialize
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-