public class TestPassCustomCellViaRegionObserver extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestPassCustomCellViaRegionObserver.RegionObserverImpl |
Modifier and Type | Field and Description |
---|---|
private static byte[] |
APPEND_VALUE |
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
FAMILY |
private static byte[] |
QUALIFIER |
private static byte[] |
QUALIFIER_FROM_CP |
private static byte[] |
ROW |
private org.apache.hadoop.hbase.client.Table |
table |
private org.apache.hadoop.hbase.TableName |
tableName |
org.junit.rules.TestName |
testName |
private static HBaseTestingUtility |
UTIL |
private static byte[] |
VALUE |
Constructor and Description |
---|
TestPassCustomCellViaRegionObserver() |
Modifier and Type | Method and Description |
---|---|
private static void |
assertObserverHasExecuted() |
private static void |
assertResult(org.apache.hadoop.hbase.client.Result result,
byte[] expectedValue) |
private static void |
assertResult(org.apache.hadoop.hbase.client.Result result,
byte[] expectedValue,
byte[] expectedFromCp) |
void |
clearTable() |
private static org.apache.hadoop.hbase.Cell |
createCustomCell(org.apache.hadoop.hbase.client.Append append) |
private static org.apache.hadoop.hbase.Cell |
createCustomCell(byte[] row,
byte[] family,
byte[] qualifier,
org.apache.hadoop.hbase.Cell.Type type,
byte[] value) |
private static org.apache.hadoop.hbase.Cell |
createCustomCell(org.apache.hadoop.hbase.client.Delete delete) |
private static org.apache.hadoop.hbase.Cell |
createCustomCell(org.apache.hadoop.hbase.client.Increment inc) |
private static org.apache.hadoop.hbase.Cell |
createCustomCell(org.apache.hadoop.hbase.client.Put put) |
static void |
setupBeforeClass() |
static void |
tearDownAfterClass() |
void |
testMultiPut() |
void |
testMutation() |
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName testName
private org.apache.hadoop.hbase.TableName tableName
private org.apache.hadoop.hbase.client.Table table
private static final HBaseTestingUtility UTIL
private static final byte[] ROW
private static final byte[] FAMILY
private static final byte[] QUALIFIER
private static final byte[] VALUE
private static final byte[] APPEND_VALUE
private static final byte[] QUALIFIER_FROM_CP
public TestPassCustomCellViaRegionObserver()
public static void setupBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void clearTable() throws IOException
IOException
public void testMutation() throws Exception
Exception
public void testMultiPut() throws Exception
Exception
private static void assertObserverHasExecuted()
private static void assertResult(org.apache.hadoop.hbase.client.Result result, byte[] expectedValue)
private static void assertResult(org.apache.hadoop.hbase.client.Result result, byte[] expectedValue, byte[] expectedFromCp)
private static org.apache.hadoop.hbase.Cell createCustomCell(byte[] row, byte[] family, byte[] qualifier, org.apache.hadoop.hbase.Cell.Type type, byte[] value)
private static org.apache.hadoop.hbase.Cell createCustomCell(org.apache.hadoop.hbase.client.Put put)
private static org.apache.hadoop.hbase.Cell createCustomCell(org.apache.hadoop.hbase.client.Append append)
private static org.apache.hadoop.hbase.Cell createCustomCell(org.apache.hadoop.hbase.client.Increment inc)
private static org.apache.hadoop.hbase.Cell createCustomCell(org.apache.hadoop.hbase.client.Delete delete)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.