public class TestTableInputFormat extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestTableInputFormat.ExampleDeprecatedTIF |
static class |
TestTableInputFormat.ExampleJobConfigurableTIF |
static class |
TestTableInputFormat.ExampleTIF |
static class |
TestTableInputFormat.ExampleVerifier |
Constructor and Description |
---|
TestTableInputFormat() |
Modifier and Type | Method and Description |
---|---|
static void |
afterClass() |
void |
before() |
static void |
beforeClass() |
static Table |
createTable(byte[] tableName)
Setup a table with two rows and values.
|
static Table |
createTable(byte[] tableName,
byte[][] families)
Setup a table with two rows and values per column family.
|
void |
testDeprecatedExtensionOfTableInputFormatBase() |
void |
testExtensionOfTableInputFormatBase()
Verify the example we present in javadocs on TableInputFormatBase
|
void |
testJobConfigurableExtensionOfTableInputFormatBase() |
void |
testTableRecordReader()
Run test assuming no errors using mapred api.
|
void |
testTableRecordReaderScannerFail()
Run test assuming Scanner IOException failure using mapred api,
|
void |
testTableRecordReaderScannerFailTwice()
Run test assuming Scanner IOException failure using mapred api,
|
void |
testTableRecordReaderScannerTimeout()
Run test assuming NotServingRegionException using mapred api.
|
void |
testTableRecordReaderScannerTimeoutTwice()
Run test assuming NotServingRegionException using mapred api.
|
public void before() throws IOException
IOException
public static Table createTable(byte[] tableName) throws IOException
tableName
- IOException
public static Table createTable(byte[] tableName, byte[][] families) throws IOException
tableName
- IOException
public void testTableRecordReader() throws IOException
IOException
public void testTableRecordReaderScannerFail() throws IOException
IOException
public void testTableRecordReaderScannerFailTwice() throws IOException
IOException
public void testTableRecordReaderScannerTimeout() throws IOException
DoNotRetryIOException
IOException
public void testTableRecordReaderScannerTimeoutTwice() throws IOException
DoNotRetryIOException
IOException
public void testExtensionOfTableInputFormatBase() throws IOException
IOException
public void testDeprecatedExtensionOfTableInputFormatBase() throws IOException
IOException
public void testJobConfigurableExtensionOfTableInputFormatBase() throws IOException
IOException