Package org.apache.hadoop.hbase.client
Class TestResult
java.lang.Object
org.apache.hadoop.hbase.client.TestResult
-
Field Summary
FieldsModifier 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertCellsSame(org.apache.hadoop.hbase.CellScanner cellScanner, org.apache.hadoop.hbase.Cell[] cells) voidMicrobenchmark 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.ResultgetArrayBackedTagResult(org.apache.hadoop.hbase.Tag tag) private org.apache.hadoop.hbase.client.ResultgetByteBufferBackedTagResult(org.apache.hadoop.hbase.Tag tag) static voidCalls non-functional test methods.voidvoidvoidvoidvoidvoidVerify that Result.compareResults(...) behaves correctly.voidvoidvoidvoidVerifies that one can't modify instance of EMPTY_RESULT.voidvoidvoidvoidRun 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.
-