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
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Adminprivate static List<org.apache.hadoop.hbase.TableName>private static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidcreateTable(org.apache.hadoop.hbase.TableName tableName, String columnFamilyName) private static voidprivate static voidinitialize(org.apache.hadoop.conf.Configuration conf) protected static org.apache.hadoop.hbase.client.TableopenTable(org.apache.hadoop.hbase.TableName tableName) static voidsetUp()static voidtearDown()
-
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
-