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
Nested ClassesModifier and TypeClassDescriptionprivate static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AsyncConnectionImplprivate final AdvancedScanResultConsumerprivate final intprivate final AtomicIntegerprivate final longprivate final longprivate final ScanResultCacheprivate final org.apache.hbase.thirdparty.io.netty.util.Timerprivate final longprivate final Scanprivate final ScanMetricsprivate final longprivate final io.opentelemetry.api.trace.Spanprivate final intprivate final TableName -
Constructor Summary
ConstructorsConstructorDescriptionAsyncClientScanner(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 longprivate voidopenScanner(int replicaId) voidstart()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
-