Package org.apache.hadoop.hbase.client
Class AbstractTestAsyncTableScan
java.lang.Object
org.apache.hadoop.hbase.client.AbstractTestAsyncTableScan
- Direct Known Subclasses:
TestAsyncTableScan,TestAsyncTableScanAll,TestAsyncTableScanner,TestRawAsyncTableScan
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static org.apache.hadoop.hbase.client.AsyncConnectionprotected static intprotected static byte[]protected static byte[]protected static byte[]protected Stringprotected static final io.opentelemetry.sdk.testing.junit5.OpenTelemetryExtensionprotected static org.apache.hadoop.hbase.TableNameprotected static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier 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>>> protected static Stream<org.junit.jupiter.params.provider.Arguments>private static org.apache.hadoop.hbase.client.AsyncTable<?>getTable()protected static Stream<org.junit.jupiter.params.provider.Arguments>private static List<org.apache.hadoop.hbase.util.Pair<String,Supplier<org.apache.hadoop.hbase.client.AsyncTable<?>>>> voidsetUp(org.junit.jupiter.api.TestInfo testInfo) static voidprotected static Stream<io.opentelemetry.sdk.trace.data.SpanData>static voidprivate 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_EXT
@RegisterExtension protected static final io.opentelemetry.sdk.testing.junit5.OpenTelemetryExtension OTEL_EXT -
UTIL
-
CONN
-
methodName
-
TABLE_NAME
-
FAMILY
-
CQ1
-
CQ2
-
COUNT
-
-
Constructor Details
-
AbstractTestAsyncTableScan
public AbstractTestAsyncTableScan()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
setUp
-
createNormalScan
-
createBatchScan
-
createSmallResultSizeScan
-
createBatchSmallResultSizeScan
-
getRawTable
-
getTable
-
getScanCreator
private static List<org.apache.hadoop.hbase.util.Pair<String,Supplier<org.apache.hadoop.hbase.client.Scan>>> getScanCreator() -
getScanCreatorParams
-
getTableCreator
private static List<org.apache.hadoop.hbase.util.Pair<String,Supplier<org.apache.hadoop.hbase.client.AsyncTable<?>>>> getTableCreator() -
getTableAndScanCreatorParams
-
createScan
-
doScan
protected abstract List<org.apache.hadoop.hbase.client.Result> doScan(org.apache.hadoop.hbase.client.Scan scan, int closeAfter) throws Exception - Throws:
Exception
-
assertTraceContinuity
Used by implementation classes to assert the correctness of spans produced under test. -
assertTraceError
protected abstract void assertTraceError(org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes> exceptionMatcher) Used by implementation classes to assert the correctness of spans having errors. -
convertFromBatchResult
protected final List<org.apache.hadoop.hbase.client.Result> convertFromBatchResult(List<org.apache.hadoop.hbase.client.Result> results) -
waitForSpan
protected 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
-
testScan
private void testScan(int start, boolean startInclusive, int stop, boolean stopInclusive, int limit) throws Exception - Throws:
Exception
-
testScan
private void testScan(int start, boolean startInclusive, int stop, boolean stopInclusive, int limit, int closeAfter) throws Exception - Throws:
Exception
-
testReversedScan
private 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
-