Class CopyTableTestBase
java.lang.Object
org.apache.hadoop.hbase.mapreduce.CopyTableTestBase
- Direct Known Subclasses:
CopyTableToPeerClusterTestBase,TestCopyTable
Base class for testing CopyTable MR tool.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.apache.hadoop.hbase.client.TablecreateSourceTable(org.apache.hadoop.hbase.client.TableDescriptor desc) protected abstract org.apache.hadoop.hbase.client.TablecreateTargetTable(org.apache.hadoop.hbase.client.TableDescriptor desc) protected final voiddoCopyTableTest(org.apache.hadoop.conf.Configuration conf, boolean bulkload) protected final voiddoCopyTableTestWithMob(org.apache.hadoop.conf.Configuration conf, boolean bulkload) protected abstract voiddropSourceTable(org.apache.hadoop.hbase.TableName tableName) protected abstract voiddropTargetTable(org.apache.hadoop.hbase.TableName tableName) protected abstract String[]protected final voidloadData(org.apache.hadoop.hbase.client.Table t, byte[] family, byte[] column) protected final booleanprotected final voidtestRenameFamily(org.apache.hadoop.conf.Configuration conf) protected final voidtestStartStopRow(org.apache.hadoop.conf.Configuration conf) protected final voidverifyRows(org.apache.hadoop.hbase.client.Table t, byte[] family, byte[] column)
-
Field Details
-
ROW1
-
ROW2
-
FAMILY_A_STRING
- See Also:
-
FAMILY_B_STRING
- See Also:
-
FAMILY_A
-
FAMILY_B
-
QUALIFIER
-
name
-
-
Constructor Details
-
CopyTableTestBase
public CopyTableTestBase()
-
-
Method Details
-
createSourceTable
protected abstract org.apache.hadoop.hbase.client.Table createSourceTable(org.apache.hadoop.hbase.client.TableDescriptor desc) throws Exception - Throws:
Exception
-
createTargetTable
protected abstract org.apache.hadoop.hbase.client.Table createTargetTable(org.apache.hadoop.hbase.client.TableDescriptor desc) throws Exception - Throws:
Exception
-
dropSourceTable
protected abstract void dropSourceTable(org.apache.hadoop.hbase.TableName tableName) throws Exception - Throws:
Exception
-
dropTargetTable
protected abstract void dropTargetTable(org.apache.hadoop.hbase.TableName tableName) throws Exception - Throws:
Exception
-
getPeerClusterOptions
- Throws:
Exception
-
loadData
protected final void loadData(org.apache.hadoop.hbase.client.Table t, byte[] family, byte[] column) throws IOException - Throws:
IOException
-
verifyRows
protected final void verifyRows(org.apache.hadoop.hbase.client.Table t, byte[] family, byte[] column) throws IOException - Throws:
IOException
-
doCopyTableTest
protected final void doCopyTableTest(org.apache.hadoop.conf.Configuration conf, boolean bulkload) throws Exception - Throws:
Exception
-
doCopyTableTestWithMob
protected final void doCopyTableTestWithMob(org.apache.hadoop.conf.Configuration conf, boolean bulkload) throws Exception - Throws:
Exception
-
runCopy
protected final boolean runCopy(org.apache.hadoop.conf.Configuration conf, String[] args) throws Exception - Throws:
Exception
-
testStartStopRow
- Throws:
Exception
-
testRenameFamily
- Throws:
Exception
-