Package org.apache.hadoop.hbase.client
Class AbstractTestAsyncTableScan
java.lang.Object
org.apache.hadoop.hbase.client.AbstractTestAsyncTableScan
- Direct Known Subclasses:
- TestAsyncTableScan,- TestAsyncTableScanAll,- TestAsyncTableScanner,- TestRawAsyncTableScan
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final org.junit.rules.TestRuleprotected static final ConnectionRuleprotected static intprotected static byte[]protected static byte[]protected static byte[]protected static final MiniClusterRuleprotected static final OpenTelemetryClassRulefinal OpenTelemetryTestRuleprotected static org.apache.hadoop.hbase.TableNamefinal org.junit.rules.TestName
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate voidassertResultEquals(org.apache.hadoop.hbase.client.Result result, int i) protected abstract voidUsed by implementation classes to assert the correctness of spans produced under test.protected abstract voidassertTraceError(org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes> exceptionMatcher) Used by implementation classes to assert the correctness of spans having errors.protected final List<org.apache.hadoop.hbase.client.Result>convertFromBatchResult(List<org.apache.hadoop.hbase.client.Result> results) private static org.apache.hadoop.hbase.client.Scanprivate static org.apache.hadoop.hbase.client.Scanprivate static org.apache.hadoop.hbase.client.Scanprotected abstract org.apache.hadoop.hbase.client.Scanprivate static org.apache.hadoop.hbase.client.Scanprotected abstract List<org.apache.hadoop.hbase.client.Result>doScan(org.apache.hadoop.hbase.client.Scan scan, int closeAfter) private static org.apache.hadoop.hbase.client.AsyncTable<?>private static List<org.apache.hadoop.hbase.util.Pair<String,Supplier<org.apache.hadoop.hbase.client.Scan>>> private static org.apache.hadoop.hbase.client.AsyncTable<?>getTable()private static List<org.apache.hadoop.hbase.util.Pair<String,Supplier<org.apache.hadoop.hbase.client.AsyncTable<?>>>> protected static Stream<io.opentelemetry.sdk.trace.data.SpanData>private voidtestReversedScan(int start, boolean startInclusive, int stop, boolean stopInclusive, int limit) voidvoidvoidvoidvoidvoidprivate voidtestScan(int start, boolean startInclusive, int stop, boolean stopInclusive, int limit) private voidtestScan(int start, boolean startInclusive, int stop, boolean stopInclusive, int limit, int closeAfter) voidvoidvoidvoidvoidvoidvoidvoidprotected static voidwaitForSpan(org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> parentSpanMatcher) 
- 
Field Details- 
OTEL_CLASS_RULE
- 
MINI_CLUSTER_RULE
- 
CONN_RULE
- 
classRule
- 
otelTestRule
- 
testName
- 
TABLE_NAME
- 
FAMILY
- 
CQ1
- 
CQ2
- 
COUNT
 
- 
- 
Constructor Details- 
AbstractTestAsyncTableScanpublic AbstractTestAsyncTableScan()
 
- 
- 
Method Details- 
createNormalScan
- 
createBatchScan
- 
createSmallResultSizeScan
- 
createBatchSmallResultSizeScan
- 
getRawTable
- 
getTable
- 
getScanCreatorprivate static List<org.apache.hadoop.hbase.util.Pair<String,Supplier<org.apache.hadoop.hbase.client.Scan>>> getScanCreator()
- 
getScanCreatorParams
- 
getTableCreatorprivate static List<org.apache.hadoop.hbase.util.Pair<String,Supplier<org.apache.hadoop.hbase.client.AsyncTable<?>>>> getTableCreator()
- 
getTableAndScanCreatorParams
- 
createScan
- 
doScanprotected abstract List<org.apache.hadoop.hbase.client.Result> doScan(org.apache.hadoop.hbase.client.Scan scan, int closeAfter) throws Exception - Throws:
- Exception
 
- 
assertTraceContinuityUsed by implementation classes to assert the correctness of spans produced under test.
- 
assertTraceErrorprotected abstract void assertTraceError(org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes> exceptionMatcher) Used by implementation classes to assert the correctness of spans having errors.
- 
convertFromBatchResultprotected final List<org.apache.hadoop.hbase.client.Result> convertFromBatchResult(List<org.apache.hadoop.hbase.client.Result> results) 
- 
waitForSpanprotected static void waitForSpan(org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> parentSpanMatcher) 
- 
spanStream
- 
testScanAll- Throws:
- Exception
 
- 
assertResultEquals
- 
testReversedScanAll- Throws:
- Exception
 
- 
testScanNoStopKey- Throws:
- Exception
 
- 
testReverseScanNoStopKey- Throws:
- Exception
 
- 
testScanWrongColumnFamily
- 
testScanprivate void testScan(int start, boolean startInclusive, int stop, boolean stopInclusive, int limit) throws Exception - Throws:
- Exception
 
- 
testScanprivate void testScan(int start, boolean startInclusive, int stop, boolean stopInclusive, int limit, int closeAfter) throws Exception - Throws:
- Exception
 
- 
testReversedScanprivate void testReversedScan(int start, boolean startInclusive, int stop, boolean stopInclusive, int limit) throws Exception - Throws:
- Exception
 
- 
testScanWithStartKeyAndStopKey- Throws:
- Exception
 
- 
testReversedScanWithStartKeyAndStopKey- Throws:
- Exception
 
- 
testScanAtRegionBoundary- Throws:
- Exception
 
- 
testReversedScanAtRegionBoundary- Throws:
- Exception
 
- 
testScanWithLimit- Throws:
- Exception
 
- 
testScanWithLimitGreaterThanActualCount- Throws:
- Exception
 
- 
testReversedScanWithLimit- Throws:
- Exception
 
- 
testReversedScanWithLimitGreaterThanActualCount- Throws:
- Exception
 
- 
testScanEndingEarly- Throws:
- Exception
 
 
-