Package org.apache.hadoop.hbase.client
Class AsyncClientScanner
java.lang.Object
org.apache.hadoop.hbase.client.AsyncClientScanner
The asynchronous client scanner implementation.
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.
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AsyncConnectionImpl
private final AdvancedScanResultConsumer
private final int
private final AtomicInteger
private final long
private final long
private final ScanResultCache
private final org.apache.hbase.thirdparty.io.netty.util.Timer
private final long
private final Scan
private final ScanMetrics
private final long
private final io.opentelemetry.api.trace.Span
private final int
private final TableName
-
Constructor Summary
ConstructorDescriptionAsyncClientScanner
(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, Map<String, byte[]> requestAttributes) -
Method Summary
Modifier and TypeMethodDescriptioncallOpenScanner
(HBaseRpcController controller, HRegionLocation loc, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.Interface stub) private long
private void
openScanner
(int replicaId) void
start()
private void
-
Field Details
-
scan
-
scanMetrics
-
consumer
-
tableName
-
conn
-
retryTimer
-
pauseNs
-
pauseNsForServerOverloaded
-
maxAttempts
-
scanTimeoutNs
-
rpcTimeoutNs
-
startLogErrorsCnt
-
resultCache
-
span
-
requestAttributes
-
openScannerTries
-
-
Constructor Details
-
AsyncClientScanner
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, Map<String, byte[]> requestAttributes)
-
-
Method Details
-
callOpenScanner
private CompletableFuture<AsyncClientScanner.OpenScannerResponse> callOpenScanner(HBaseRpcController controller, HRegionLocation loc, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.Interface stub) -
startScan
-
openScanner
-
getPrimaryTimeoutNs
-
openScanner
-
start
-