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, toString
public 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
IOException
private void assertSame(org.apache.hadoop.hbase.CellScanner cellScanner, org.apache.hadoop.hbase.Cell[] cells) throws IOException
IOException
public void testBasicGetColumn() throws Exception
Exception
public void testCurrentOnEmptyCell() throws IOException
IOException
public void testAdvanceTwiceOnEmptyCell() throws IOException
IOException
public void testMultiVersionGetColumn() throws Exception
Exception
public void testBasicGetValue() throws Exception
Exception
public void testMultiVersionGetValue() throws Exception
Exception
public void testBasicLoadValue() throws Exception
Exception
public void testMultiVersionLoadValue() throws Exception
Exception
public void testCompareResults() throws Exception
Exception
public void testEmptyResultIsReadonly()
public void doReadBenchmark() throws Exception
Result.getValue(byte[], byte[])
and Result.loadValue(byte[], byte[], java.nio.ByteBuffer)
performance.Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.