public class TestParallelPut extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestParallelPut.Putter
A thread that makes a few put calls
|
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static HBaseTestingUtility |
HBTU |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
(package private) static byte[] |
qual1 |
(package private) static byte[] |
qual2 |
(package private) static byte[] |
qual3 |
private org.apache.hadoop.hbase.regionserver.HRegion |
region |
(package private) static byte[] |
row |
(package private) static byte[] |
row2 |
(package private) static byte[] |
tableName |
private static int |
THREADS100 |
(package private) static byte[] |
value1 |
(package private) static byte[] |
value2 |
Constructor and Description |
---|
TestParallelPut() |
Modifier and Type | Method and Description |
---|---|
private static void |
assertGet(org.apache.hadoop.hbase.regionserver.HRegion region,
byte[] row,
byte[] familiy,
byte[] qualifier,
byte[] value) |
static void |
beforeClass() |
String |
getName() |
private org.apache.hadoop.hbase.regionserver.HRegion |
initHRegion(byte[] tableName,
String callingMethod,
byte[]... families) |
void |
setUp() |
void |
tearDown() |
void |
testParallelPuts()
Test multi-threaded Puts.
|
void |
testPut()
Test one put command.
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public org.junit.rules.TestName name
private org.apache.hadoop.hbase.regionserver.HRegion region
private static HBaseTestingUtility HBTU
private static final int THREADS100
static byte[] tableName
static final byte[] qual1
static final byte[] qual2
static final byte[] qual3
static final byte[] value1
static final byte[] value2
static final byte[] row
static final byte[] row2
public TestParallelPut()
public static void beforeClass()
public void setUp() throws Exception
Exception
HBaseTestCase.setUp()
public void testPut() throws IOException
IOException
public void testParallelPuts() throws IOException
IOException
private static void assertGet(org.apache.hadoop.hbase.regionserver.HRegion region, byte[] row, byte[] familiy, byte[] qualifier, byte[] value) throws IOException
IOException
private org.apache.hadoop.hbase.regionserver.HRegion initHRegion(byte[] tableName, String callingMethod, byte[]... families) throws IOException
IOException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.