public class TestResult extends junit.framework.TestCase
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
(package private) static byte[] |
family |
private static org.slf4j.Logger |
LOG |
(package private) static byte[] |
row |
(package private) static byte[] |
value |
| Constructor and Description |
|---|
TestResult() |
| Modifier and Type | Method and Description |
|---|---|
private void |
assertSame(org.apache.hadoop.hbase.CellScanner cellScanner,
org.apache.hadoop.hbase.Cell[] cells) |
void |
doReadBenchmark()
Microbenchmark that compares
Result.getValue(byte[], byte[]) and Result.loadValue(byte[], byte[], java.nio.ByteBuffer) performance. |
(package private) static org.apache.hadoop.hbase.KeyValue[] |
genKVs(byte[] row,
byte[] family,
byte[] value,
long timestamp,
int cols) |
static void |
main(String[] args)
Calls non-functional test methods.
|
void |
testAdvanceTwiceOnEmptyCell() |
void |
testBasicGetColumn() |
void |
testBasicGetValue() |
void |
testBasicLoadValue() |
void |
testCompareResults()
Verify that Result.compareResults(...) behaves correctly.
|
void |
testCurrentOnEmptyCell() |
void |
testEmptyResultIsReadonly()
Verifies that one can't modify instance of EMPTY_RESULT.
|
void |
testMultiVersionGetColumn() |
void |
testMultiVersionGetValue() |
void |
testMultiVersionLoadValue() |
void |
testResultAsCellScanner()
Run some tests to ensure Result acts like a proper CellScanner.
|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringpublic static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
static final byte[] row
static final byte[] family
static final byte[] value
public TestResult()
static org.apache.hadoop.hbase.KeyValue[] genKVs(byte[] row, byte[] family, byte[] value, long timestamp, int cols)
public void testResultAsCellScanner() throws IOException
IOExceptionprivate void assertSame(org.apache.hadoop.hbase.CellScanner cellScanner, org.apache.hadoop.hbase.Cell[] cells) throws IOException
IOExceptionpublic void testBasicGetColumn() throws Exception
Exceptionpublic void testCurrentOnEmptyCell() throws IOException
IOExceptionpublic void testAdvanceTwiceOnEmptyCell() throws IOException
IOExceptionpublic void testMultiVersionGetColumn() throws Exception
Exceptionpublic void testBasicGetValue() throws Exception
Exceptionpublic void testMultiVersionGetValue() throws Exception
Exceptionpublic void testBasicLoadValue() throws Exception
Exceptionpublic void testMultiVersionLoadValue() throws Exception
Exceptionpublic void testCompareResults() throws Exception
Exceptionpublic void testEmptyResultIsReadonly()
public void doReadBenchmark() throws Exception
Result.getValue(byte[], byte[]) and Result.loadValue(byte[], byte[], java.nio.ByteBuffer) performance.ExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.