@InterfaceAudience.Private public class ClientAsyncPrefetchScanner extends ClientSimpleScanner
prefetchCondition().cache, caching, callable, caller, closed, conf, currentRegion, lastNext, lastResult, maxScannerResultSize, pool, primaryOperationTimeout, readRpcTimeout, rpcControllerFactory, scan, scanMetricsPublished, scannerTimeout, span, tableNamescanMetrics| Constructor and Description |
|---|
ClientAsyncPrefetchScanner(org.apache.hadoop.conf.Configuration configuration,
Scan scan,
TableName name,
ClusterConnection connection,
RpcRetryingCallerFactory rpcCallerFactory,
RpcControllerFactory rpcControllerFactory,
ExecutorService pool,
int scanReadRpcTimeout,
int scannerTimeout,
int replicaCallTimeoutMicroSecondScan) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEstimatedSize(long estimatedSize) |
void |
close()
Closes the scanner and releases any resources it has allocated
|
protected void |
initCache() |
Result |
next()
Grab the next row's worth of values.
|
createScannerCallable, setNewStartKeygetCacheCount, getCacheSize, getCaching, getConf, getConnection, getMaxResultSize, getPool, getPrimaryOperationTimeout, getRetries, getScan, getScannerTimeout, getScanReplicaId, getTable, getTimestamp, initSyncCache, loadCache, moveToNextRegion, nextWithSyncCache, renewLease, writeScanMetricsgetScanMetrics, initScanMetricsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waititerator, nextforEach, spliteratorpublic ClientAsyncPrefetchScanner(org.apache.hadoop.conf.Configuration configuration,
Scan scan,
TableName name,
ClusterConnection connection,
RpcRetryingCallerFactory rpcCallerFactory,
RpcControllerFactory rpcControllerFactory,
ExecutorService pool,
int scanReadRpcTimeout,
int scannerTimeout,
int replicaCallTimeoutMicroSecondScan)
throws IOException
IOExceptionprotected void initCache()
initCache in class ClientScannerpublic Result next() throws IOException
ResultScannernext in interface ResultScannernext in class ClientScannerIOException - epublic void close()
ResultScannerclose in interface Closeableclose in interface AutoCloseableclose in interface ResultScannerclose in class ClientScannerprotected void addEstimatedSize(long estimatedSize)
addEstimatedSize in class ClientScannerCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.