public abstract class AbstractTestAsyncTableScan extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
AbstractTestAsyncTableScan.Setup |
Modifier and Type | Field and Description |
---|---|
static org.junit.rules.TestRule |
classRule |
protected static ConnectionRule |
connectionRule |
protected static int |
COUNT |
protected static byte[] |
CQ1 |
protected static byte[] |
CQ2 |
protected static byte[] |
FAMILY |
protected static MiniClusterRule |
miniClusterRule |
protected static OpenTelemetryClassRule |
otelClassRule |
OpenTelemetryTestRule |
otelTestRule |
protected static org.apache.hadoop.hbase.TableName |
TABLE_NAME |
org.junit.rules.TestName |
testName |
Constructor and Description |
---|
AbstractTestAsyncTableScan() |
Modifier and Type | Method and Description |
---|---|
private void |
assertResultEquals(org.apache.hadoop.hbase.client.Result result,
int i) |
protected abstract void |
assertTraceContinuity()
Used by implementation classes to assert the correctness of spans produced under test.
|
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.
|
protected List<org.apache.hadoop.hbase.client.Result> |
convertFromBatchResult(List<org.apache.hadoop.hbase.client.Result> results) |
private static org.apache.hadoop.hbase.client.Scan |
createBatchScan() |
private static org.apache.hadoop.hbase.client.Scan |
createBatchSmallResultSizeScan() |
private static org.apache.hadoop.hbase.client.Scan |
createNormalScan() |
protected abstract org.apache.hadoop.hbase.client.Scan |
createScan() |
private static org.apache.hadoop.hbase.client.Scan |
createSmallResultSizeScan() |
protected 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<?> |
getRawTable() |
private static List<org.apache.hadoop.hbase.util.Pair<String,Supplier<org.apache.hadoop.hbase.client.Scan>>> |
getScanCreator() |
protected static List<Object[]> |
getScanCreatorParams() |
private static org.apache.hadoop.hbase.client.AsyncTable<?> |
getTable() |
protected static List<Object[]> |
getTableAndScanCreatorParams() |
private static List<org.apache.hadoop.hbase.util.Pair<String,Supplier<org.apache.hadoop.hbase.client.AsyncTable<?>>>> |
getTableCreator() |
private void |
testReversedScan(int start,
boolean startInclusive,
int stop,
boolean stopInclusive,
int limit) |
void |
testReversedScanAll() |
void |
testReversedScanAtRegionBoundary() |
void |
testReversedScanWithLimit() |
void |
testReversedScanWithLimitGreaterThanActualCount() |
void |
testReversedScanWithStartKeyAndStopKey() |
void |
testReverseScanNoStopKey() |
private void |
testScan(int start,
boolean startInclusive,
int stop,
boolean stopInclusive,
int limit) |
private void |
testScan(int start,
boolean startInclusive,
int stop,
boolean stopInclusive,
int limit,
int closeAfter) |
void |
testScanAll() |
void |
testScanAtRegionBoundary() |
void |
testScanEndingEarly() |
void |
testScanNoStopKey() |
void |
testScanWithLimit() |
void |
testScanWithLimitGreaterThanActualCount() |
void |
testScanWithStartKeyAndStopKey() |
void |
testScanWrongColumnFamily() |
protected static void |
waitForSpan(org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> parentSpanMatcher) |
protected static final OpenTelemetryClassRule otelClassRule
protected static final MiniClusterRule miniClusterRule
protected static final ConnectionRule connectionRule
public static final org.junit.rules.TestRule classRule
public final OpenTelemetryTestRule otelTestRule
public final org.junit.rules.TestName testName
protected static org.apache.hadoop.hbase.TableName TABLE_NAME
protected static byte[] FAMILY
protected static byte[] CQ1
protected static byte[] CQ2
protected static int COUNT
public AbstractTestAsyncTableScan()
private static org.apache.hadoop.hbase.client.Scan createNormalScan()
private static org.apache.hadoop.hbase.client.Scan createBatchScan()
private static org.apache.hadoop.hbase.client.Scan createSmallResultSizeScan()
private static org.apache.hadoop.hbase.client.Scan createBatchSmallResultSizeScan()
private static org.apache.hadoop.hbase.client.AsyncTable<?> getRawTable()
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.Scan>>> getScanCreator()
protected static List<Object[]> getScanCreatorParams()
private static List<org.apache.hadoop.hbase.util.Pair<String,Supplier<org.apache.hadoop.hbase.client.AsyncTable<?>>>> getTableCreator()
protected static List<Object[]> getTableAndScanCreatorParams()
protected abstract org.apache.hadoop.hbase.client.Scan createScan()
protected abstract List<org.apache.hadoop.hbase.client.Result> doScan(org.apache.hadoop.hbase.client.Scan scan, int closeAfter) throws Exception
Exception
protected abstract void assertTraceContinuity()
protected abstract void assertTraceError(org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes> exceptionMatcher)
protected final List<org.apache.hadoop.hbase.client.Result> convertFromBatchResult(List<org.apache.hadoop.hbase.client.Result> results)
protected static void waitForSpan(org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> parentSpanMatcher)
public void testScanAll() throws Exception
Exception
private void assertResultEquals(org.apache.hadoop.hbase.client.Result result, int i)
public void testReversedScanAll() throws Exception
Exception
public void testScanNoStopKey() throws Exception
Exception
public void testReverseScanNoStopKey() throws Exception
Exception
public void testScanWrongColumnFamily()
private void testScan(int start, boolean startInclusive, int stop, boolean stopInclusive, int limit) throws Exception
Exception
private void testScan(int start, boolean startInclusive, int stop, boolean stopInclusive, int limit, int closeAfter) throws Exception
Exception
private void testReversedScan(int start, boolean startInclusive, int stop, boolean stopInclusive, int limit) throws Exception
Exception
public void testScanWithStartKeyAndStopKey() throws Exception
Exception
public void testReversedScanWithStartKeyAndStopKey() throws Exception
Exception
public void testScanAtRegionBoundary() throws Exception
Exception
public void testReversedScanAtRegionBoundary() throws Exception
Exception
public void testScanWithLimit() throws Exception
Exception
public void testScanWithLimitGreaterThanActualCount() throws Exception
Exception
public void testReversedScanWithLimit() throws Exception
Exception
public void testReversedScanWithLimitGreaterThanActualCount() throws Exception
Exception
public void testScanEndingEarly() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.