public class TestOpenTableInCoprocessor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestOpenTableInCoprocessor.CustomThreadPoolCoprocessor
Coprocessor that creates an HTable with a pool to write to another table
|
static class |
TestOpenTableInCoprocessor.SendToOtherTableCoprocessor
Custom coprocessor that just copies the write to another table.
|
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static boolean[] |
completed |
private static boolean[] |
completedWithPool |
private static byte[] |
family |
private static org.apache.hadoop.hbase.TableName |
otherTable |
private static org.apache.hadoop.hbase.TableName |
primaryTable |
private static HBaseTestingUtility |
UTIL |
Constructor and Description |
---|
TestOpenTableInCoprocessor() |
Modifier and Type | Method and Description |
---|---|
void |
cleanupTestTable() |
private int |
getKeyValueCount(org.apache.hadoop.hbase.client.Table table)
Count the number of keyvalue in the table.
|
private void |
runCoprocessorConnectionToRemoteTable(Class clazz,
boolean[] completeCheck) |
static void |
setupCluster() |
static void |
teardownCluster() |
void |
testCoprocessorCanCreateConnectionToRemoteTable() |
void |
testCoprocessorCanCreateConnectionToRemoteTableWithCustomPool() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.apache.hadoop.hbase.TableName otherTable
private static final org.apache.hadoop.hbase.TableName primaryTable
private static final byte[] family
private static boolean[] completed
private static boolean[] completedWithPool
private static HBaseTestingUtility UTIL
public TestOpenTableInCoprocessor()
public static void setupCluster() throws Exception
Exception
public void cleanupTestTable() throws Exception
Exception
public static void teardownCluster() throws Exception
Exception
public void testCoprocessorCanCreateConnectionToRemoteTable() throws Throwable
Throwable
public void testCoprocessorCanCreateConnectionToRemoteTableWithCustomPool() throws Throwable
Throwable
private void runCoprocessorConnectionToRemoteTable(Class clazz, boolean[] completeCheck) throws Throwable
Throwable
private int getKeyValueCount(org.apache.hadoop.hbase.client.Table table) throws IOException
table
- table to scanIOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.