@InterfaceAudience.Private public class ClientSmallScanner extends ClientScanner
ClientScanner| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
ClientSmallScanner.SmallScannerCallableFactory |
cache, caching, callable, caller, closed, conf, currentRegion, lastNext, lastResult, maxScannerResultSize, pool, primaryOperationTimeout, rpcControllerFactory, scan, scanMetricsPublished, scannerTimeoutscanMetrics| 构造器和说明 |
|---|
ClientSmallScanner(org.apache.hadoop.conf.Configuration conf,
Scan scan,
org.apache.hadoop.hbase.TableName tableName,
ClusterConnection connection,
RpcRetryingCallerFactory rpcFactory,
RpcControllerFactory controllerFactory,
ExecutorService pool,
int primaryOperationTimeout)
Create a new ShortClientScanner for the specified table.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Closes the scanner and releases any resources it has allocated
|
protected void |
initializeScannerInConstruction() |
protected void |
loadCache()
Contact the servers to load more
Results in the cache. |
Result |
next()
Grab the next row's worth of values.
|
protected void |
setScannerCallableFactory(ClientSmallScanner.SmallScannerCallableFactory callableFactory) |
checkScanStopRow, getCacheSize, getCaching, getConf, getConnection, getMaxResultSize, getPool, getPrimaryOperationTimeout, getRetries, getScan, getScannerCallable, getScannerTimeout, getTable, getTableName, getTimestamp, nextScanner, renewLease, writeScanMetricsgetScanMetrics, initScanMetrics, iterator, nextpublic ClientSmallScanner(org.apache.hadoop.conf.Configuration conf,
Scan scan,
org.apache.hadoop.hbase.TableName tableName,
ClusterConnection connection,
RpcRetryingCallerFactory rpcFactory,
RpcControllerFactory controllerFactory,
ExecutorService pool,
int primaryOperationTimeout)
throws IOException
Scan
's start row maybe changed changed.conf - The Configuration to use.scan - Scan to use in this scannertableName - The table that we wish to rangeGetconnection - Connection identifying the clusterrpcFactory - Factory used to create the RpcRetryingCallercontrollerFactory - Factory used to access RPC payloadspool - Threadpool for RPC threadsprimaryOperationTimeout - Call timeoutIOException - If the remote call failsprotected void initializeScannerInConstruction()
throws IOException
initializeScannerInConstruction 在类中 ClientScannerIOExceptionpublic Result next() throws IOException
ResultScannernext 在接口中 ResultScannernext 在类中 ClientScannerIOException - eprotected void loadCache()
throws IOException
ClientScannerResults in the cache.loadCache 在类中 ClientScannerIOExceptionpublic void close()
ResultScannerclose 在接口中 Closeableclose 在接口中 AutoCloseableclose 在接口中 ResultScannerclose 在类中 ClientScannerprotected void setScannerCallableFactory(ClientSmallScanner.SmallScannerCallableFactory callableFactory)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.