public class TestResult extends Object
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[] |
qual |
(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) |
private org.apache.hadoop.hbase.client.Result |
getArrayBackedTagResult(org.apache.hadoop.hbase.Tag tag) |
private org.apache.hadoop.hbase.client.Result |
getByteBufferBackedTagResult(org.apache.hadoop.hbase.Tag tag) |
static void |
main(String[] args)
Calls non-functional test methods.
|
void |
testAdvanceMultipleOnEmptyCell() |
void |
testBasicGetColumn() |
void |
testBasicGetValue() |
void |
testBasicLoadValue() |
void |
testCompareResultMemoryUsage() |
void |
testCompareResults()
Verify that Result.compareResults(...) behaves correctly.
|
void |
testCompareResultsWithTags() |
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.
|
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
static final byte[] qual
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 testAdvanceMultipleOnEmptyCell() 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 testCompareResultsWithTags() throws Exception
Exception
public void testCompareResultMemoryUsage()
private org.apache.hadoop.hbase.client.Result getArrayBackedTagResult(org.apache.hadoop.hbase.Tag tag)
private org.apache.hadoop.hbase.client.Result getByteBufferBackedTagResult(org.apache.hadoop.hbase.Tag tag)
public void testEmptyResultIsReadonly()
public void doReadBenchmark() throws Exception
Result.getValue(byte[], byte[])
and Result.loadValue(byte[], byte[], java.nio.ByteBuffer)
performance.
nException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.