public class TestAsyncTableBatch extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestAsyncTableBatch.ErrorInjectObserver |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.client.AsyncConnection |
CONN |
private static int |
COUNT |
private static byte[] |
CQ |
private static byte[] |
CQ1 |
private static byte[] |
FAMILY |
private static byte[][] |
SPLIT_KEYS |
private static org.apache.hadoop.hbase.TableName |
TABLE_NAME |
Function<org.apache.hadoop.hbase.TableName,org.apache.hadoop.hbase.client.AsyncTable<?>> |
tableGetter |
String |
tableType |
private static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestAsyncTableBatch() |
| Modifier and Type | Method and Description |
|---|---|
private static org.apache.hadoop.hbase.client.AsyncTable<?> |
getRawTable(org.apache.hadoop.hbase.TableName tableName) |
private byte[] |
getRow(int i) |
private static org.apache.hadoop.hbase.client.AsyncTable<?> |
getTable(org.apache.hadoop.hbase.TableName tableName) |
static List<Object[]> |
params() |
static void |
setUp() |
void |
setUpBeforeTest() |
static void |
tearDown() |
void |
tearDownAfterTest() |
void |
test() |
void |
testMixed() |
void |
testPartialSuccess() |
void |
testWithRegionServerFailover() |
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtility TEST_UTIL
private static org.apache.hadoop.hbase.TableName TABLE_NAME
private static byte[] FAMILY
private static byte[] CQ
private static byte[] CQ1
private static int COUNT
private static org.apache.hadoop.hbase.client.AsyncConnection CONN
private static byte[][] SPLIT_KEYS
public Function<org.apache.hadoop.hbase.TableName,org.apache.hadoop.hbase.client.AsyncTable<?>> tableGetter
public TestAsyncTableBatch()
private static org.apache.hadoop.hbase.client.AsyncTable<?> getRawTable(org.apache.hadoop.hbase.TableName tableName)
private static org.apache.hadoop.hbase.client.AsyncTable<?> getTable(org.apache.hadoop.hbase.TableName tableName)
public void setUpBeforeTest() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void tearDownAfterTest() throws IOException
IOExceptionprivate byte[] getRow(int i)
public void test() throws InterruptedException, ExecutionException, IOException, TimeoutException
public void testWithRegionServerFailover() throws Exception
Exceptionpublic void testMixed() throws InterruptedException, ExecutionException, IOException
public void testPartialSuccess() throws IOException, InterruptedException, ExecutionException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.