public class TestCellBasedImportExport2 extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
TestCellBasedImportExport2.TableWALActionListener
This listens to the
TestCellBasedImportExport2.TableWALActionListener.visitLogEntryBeforeWrite(RegionInfo, WALKey, WALEdit) to identify
that an entry is written to the Write Ahead Log for the given table. |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static String |
EXPORT_BATCH_SIZE |
private org.apache.hadoop.hbase.TableName |
EXPORT_TABLE |
private static byte[] |
FAMILYA |
private static String |
FAMILYA_STRING |
private static byte[] |
FAMILYB |
private static String |
FAMILYB_STRING |
private static String |
FQ_OUTPUT_DIR |
private org.apache.hadoop.hbase.TableName |
IMPORT_TABLE |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static long |
now |
private static String |
OUTPUT_DIR |
private static byte[] |
QUAL |
private static byte[] |
ROW1 |
private static byte[] |
ROW2 |
private static byte[] |
ROW3 |
protected static HBaseTestingUtility |
UTIL |
Constructor and Description |
---|
TestCellBasedImportExport2() |
Modifier and Type | Method and Description |
---|---|
static void |
afterClass() |
void |
announce() |
static void |
beforeClass() |
void |
cleanup() |
private int |
getCount(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.filter.Filter filter)
Count the number of keyvalues in the specified table for the given timerange nnn
|
protected boolean |
runExport(String[] args)
Runs an export job with the specified command line args n * @return true if job completed
successfully nnn
|
protected void |
runExportMain(String[] args) |
(package private) boolean |
runImport(String[] args)
Runs an import job with the specified command line args n * @return true if job completed
successfully nnn
|
void |
testAddFilterAndArguments()
Test addFilterAndArguments method of Import This method set couple parameters into
Configuration
|
void |
testDurability() |
void |
testExportMain()
test main method.
|
void |
testExportScan() |
void |
testExportScannerBatching()
Test export scanner batching
|
void |
testImport94Table()
Test import data from 0.94 exported file n
|
void |
testImportMain()
test main method.
|
void |
testKeyValueImporter()
Test map method of Importer
|
void |
testMetaExport()
Test export hbase:meta table n
|
void |
testSimpleCase()
Test simple replication case with column mapping n
|
void |
testWithDeletes() |
void |
testWithFilter()
Create a simple table, run an Export Job on it, Import with filtering on, verify counts,
attempt with invalid values.
|
void |
testWithMultipleDeleteFamilyMarkersOfSameRowSameFamily() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
protected static final HBaseTestingUtility UTIL
private static final byte[] ROW1
private static final byte[] ROW2
private static final byte[] ROW3
private static final String FAMILYA_STRING
private static final String FAMILYB_STRING
private static final byte[] FAMILYA
private static final byte[] FAMILYB
private static final byte[] QUAL
private static final String OUTPUT_DIR
private static String FQ_OUTPUT_DIR
private static final String EXPORT_BATCH_SIZE
private static final long now
private final org.apache.hadoop.hbase.TableName EXPORT_TABLE
private final org.apache.hadoop.hbase.TableName IMPORT_TABLE
public final org.junit.rules.TestName name
public TestCellBasedImportExport2()
public static void beforeClass() throws Throwable
Throwable
public static void afterClass() throws Throwable
Throwable
public void announce()
protected boolean runExport(String[] args) throws Throwable
Throwable
protected void runExportMain(String[] args) throws Throwable
Throwable
boolean runImport(String[] args) throws Throwable
Throwable
public void testSimpleCase() throws Throwable
Throwable
public void testMetaExport() throws Throwable
Throwable
public void testImport94Table() throws Throwable
Throwable
public void testExportScannerBatching() throws Throwable
Throwable
public void testWithDeletes() throws Throwable
Throwable
public void testWithMultipleDeleteFamilyMarkersOfSameRowSameFamily() throws Throwable
Throwable
public void testWithFilter() throws Throwable
Throwable
private int getCount(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.filter.Filter filter) throws IOException
IOException
public void testImportMain() throws Throwable
Throwable
public void testExportScan() throws Exception
Exception
public void testExportMain() throws Throwable
Throwable
public void testKeyValueImporter() throws Throwable
Throwable
public void testAddFilterAndArguments() throws IOException
IOException
public void testDurability() throws Throwable
Throwable
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.