@InterfaceAudience.Private class AsyncClientScanner extends Object
Here we will call OpenScanner first and use the returned scannerId to create a
AsyncScanSingleRegionRpcRetryingCaller
to do the real scan operation. The return value of
AsyncScanSingleRegionRpcRetryingCaller
will tell us whether open a new scanner or finish
scan.
Modifier and Type | Class and Description |
---|---|
private static class |
AsyncClientScanner.OpenScannerResponse |
Modifier and Type | Field and Description |
---|---|
private AsyncConnectionImpl |
conn |
private AdvancedScanResultConsumer |
consumer |
private int |
maxAttempts |
private AtomicInteger |
openScannerTries |
private long |
pauseNs |
private long |
pauseNsForServerOverloaded |
private ScanResultCache |
resultCache |
private org.apache.hbase.thirdparty.io.netty.util.Timer |
retryTimer |
private long |
rpcTimeoutNs |
private Scan |
scan |
private ScanMetrics |
scanMetrics |
private long |
scanTimeoutNs |
private io.opentelemetry.api.trace.Span |
span |
private int |
startLogErrorsCnt |
private TableName |
tableName |
Constructor and Description |
---|
AsyncClientScanner(Scan scan,
AdvancedScanResultConsumer consumer,
TableName tableName,
AsyncConnectionImpl conn,
org.apache.hbase.thirdparty.io.netty.util.Timer retryTimer,
long pauseNs,
long pauseNsForServerOverloaded,
int maxAttempts,
long scanTimeoutNs,
long rpcTimeoutNs,
int startLogErrorsCnt) |
Modifier and Type | Method and Description |
---|---|
private CompletableFuture<AsyncClientScanner.OpenScannerResponse> |
callOpenScanner(HBaseRpcController controller,
HRegionLocation loc,
org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.Interface stub) |
private long |
getPrimaryTimeoutNs() |
private void |
openScanner() |
private CompletableFuture<AsyncClientScanner.OpenScannerResponse> |
openScanner(int replicaId) |
void |
start() |
private void |
startScan(AsyncClientScanner.OpenScannerResponse resp) |
private final ScanMetrics scanMetrics
private final AdvancedScanResultConsumer consumer
private final AsyncConnectionImpl conn
private final org.apache.hbase.thirdparty.io.netty.util.Timer retryTimer
private final long pauseNs
private final long pauseNsForServerOverloaded
private final int maxAttempts
private final long scanTimeoutNs
private final long rpcTimeoutNs
private final int startLogErrorsCnt
private final ScanResultCache resultCache
private final io.opentelemetry.api.trace.Span span
private final AtomicInteger openScannerTries
public AsyncClientScanner(Scan scan, AdvancedScanResultConsumer consumer, TableName tableName, AsyncConnectionImpl conn, org.apache.hbase.thirdparty.io.netty.util.Timer retryTimer, long pauseNs, long pauseNsForServerOverloaded, int maxAttempts, long scanTimeoutNs, long rpcTimeoutNs, int startLogErrorsCnt)
private CompletableFuture<AsyncClientScanner.OpenScannerResponse> callOpenScanner(HBaseRpcController controller, HRegionLocation loc, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.Interface stub)
private void startScan(AsyncClientScanner.OpenScannerResponse resp)
private CompletableFuture<AsyncClientScanner.OpenScannerResponse> openScanner(int replicaId)
private long getPrimaryTimeoutNs()
private void openScanner()
public void start()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.