Package org.apache.hadoop.hbase.client
Class TestResult
java.lang.Object
org.apache.hadoop.hbase.client.TestResult
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
(package private) static final byte[]
private static final org.slf4j.Logger
(package private) static final byte[]
(package private) static final byte[]
(package private) static final byte[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertCellsSame
(org.apache.hadoop.hbase.CellScanner cellScanner, org.apache.hadoop.hbase.Cell[] cells) void
Microbenchmark that comparesResult.getValue(byte[], byte[])
andResult.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
Calls non-functional test methods.void
void
void
void
void
void
Verify that Result.compareResults(...) behaves correctly.void
void
void
void
Verifies that one can't modify instance of EMPTY_RESULT.void
void
void
void
Run some tests to ensure Result acts like a proper CellScanner.
-
Field Details
-
CLASS_RULE
-
LOG
-
row
-
family
-
value
-
qual
-
-
Constructor Details
-
TestResult
public TestResult()
-
-
Method Details
-
genKVs
static org.apache.hadoop.hbase.KeyValue[] genKVs(byte[] row, byte[] family, byte[] value, long timestamp, int cols) -
testResultAsCellScanner
Run some tests to ensure Result acts like a proper CellScanner.- Throws:
IOException
-
assertCellsSame
private void assertCellsSame(org.apache.hadoop.hbase.CellScanner cellScanner, org.apache.hadoop.hbase.Cell[] cells) throws IOException - Throws:
IOException
-
testBasicGetColumn
- Throws:
Exception
-
testCurrentOnEmptyCell
- Throws:
IOException
-
testAdvanceMultipleOnEmptyCell
- Throws:
IOException
-
testMultiVersionGetColumn
- Throws:
Exception
-
testBasicGetValue
- Throws:
Exception
-
testMultiVersionGetValue
- Throws:
Exception
-
testBasicLoadValue
- Throws:
Exception
-
testMultiVersionLoadValue
- Throws:
Exception
-
testCompareResults
Verify that Result.compareResults(...) behaves correctly.- Throws:
Exception
-
testCompareResultsWithTags
- Throws:
Exception
-
testCompareResultMemoryUsage
-
getArrayBackedTagResult
private org.apache.hadoop.hbase.client.Result getArrayBackedTagResult(org.apache.hadoop.hbase.Tag tag) -
getByteBufferBackedTagResult
private org.apache.hadoop.hbase.client.Result getByteBufferBackedTagResult(org.apache.hadoop.hbase.Tag tag) -
testEmptyResultIsReadonly
Verifies that one can't modify instance of EMPTY_RESULT. -
doReadBenchmark
Microbenchmark that comparesResult.getValue(byte[], byte[])
andResult.loadValue(byte[], byte[], java.nio.ByteBuffer)
performance.- Throws:
Exception
-
testCreateResultWithCellArray
-
main
Calls non-functional test methods.
-