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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.apache.hadoop.hbase.client.Table
createSourceTable
(org.apache.hadoop.hbase.client.TableDescriptor desc) protected abstract org.apache.hadoop.hbase.client.Table
createTargetTable
(org.apache.hadoop.hbase.client.TableDescriptor desc) protected final void
doCopyTableTest
(org.apache.hadoop.conf.Configuration conf, boolean bulkload) protected final void
doCopyTableTestWithMob
(org.apache.hadoop.conf.Configuration conf, boolean bulkload) protected abstract void
dropSourceTable
(org.apache.hadoop.hbase.TableName tableName) protected abstract void
dropTargetTable
(org.apache.hadoop.hbase.TableName tableName) protected abstract String[]
protected final void
loadData
(org.apache.hadoop.hbase.client.Table t, byte[] family, byte[] column) protected final boolean
protected final void
testRenameFamily
(org.apache.hadoop.conf.Configuration conf) protected final void
testStartStopRow
(org.apache.hadoop.conf.Configuration conf) protected final void
verifyRows
(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
-