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 int |
MAX_KEY_VALUE_SIZE |
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 |
testInvalidPut() |
void |
testInvalidPutInRowMutations() |
void |
testInvalidPutInRowMutationsInCheckAndMutate() |
void |
testMixed() |
void |
testPartialSuccess() |
void |
testPartialSuccessOnSameRegion() |
void |
testWithCheckAndMutate() |
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
private static int MAX_KEY_VALUE_SIZE
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
IOException
InterruptedException
public void tearDownAfterTest() throws IOException
IOException
private byte[] getRow(int i)
public void test() throws InterruptedException, ExecutionException, IOException, TimeoutException
public void testWithRegionServerFailover() throws Exception
Exception
public void testMixed() throws InterruptedException, ExecutionException, IOException
public void testPartialSuccess() throws IOException, InterruptedException, ExecutionException
public void testPartialSuccessOnSameRegion() throws InterruptedException, ExecutionException
public void testInvalidPut()
public void testInvalidPutInRowMutations() throws IOException
IOException
public void testInvalidPutInRowMutationsInCheckAndMutate() throws IOException
IOException
public void testWithCheckAndMutate() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.