@InterfaceAudience.Private public class ClientSmallReversedScanner extends ReversedClientScanner
ReversedClientScanner| Modifier and Type | Class and Description |
|---|---|
protected static class |
ClientSmallReversedScanner.SmallReversedScannerCallableFactory |
cache, caching, callable, caller, closed, conf, currentRegion, lastCellLoadedToCache, lastNext, lastResult, maxScannerResultSize, partialResults, partialResultsRow, pool, primaryOperationTimeout, rpcControllerFactory, scan, scanMetricsPublished, scannerTimeoutscanMetrics| Constructor and Description |
|---|
ClientSmallReversedScanner(Configuration conf,
Scan scan,
TableName tableName,
ClusterConnection connection,
RpcRetryingCallerFactory rpcFactory,
RpcControllerFactory controllerFactory,
java.util.concurrent.ExecutorService pool,
int primaryOperationTimeout)
Create a new ReversibleClientScanner for the specified table.
|
| Modifier and Type | Method and Description |
|---|---|
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(ClientSmallReversedScanner.SmallReversedScannerCallableFactory callableFactory) |
checkScanStopRow, getScannerCallable, nextScannercreateClosestRowBefore, getCacheSize, getCaching, getConf, getConnection, getMaxResultSize, getPool, getPrimaryOperationTimeout, getResultsToAddToCache, getRetries, getScan, getScannerCallable, getScannerTimeout, getTable, getTableName, getTimestamp, renewLease, updateLastCellLoadedToCache, writeScanMetricsgetScanMetrics, initScanMetrics, iterator, nextpublic ClientSmallReversedScanner(Configuration conf,
Scan scan,
TableName tableName,
ClusterConnection connection,
RpcRetryingCallerFactory rpcFactory,
RpcControllerFactory controllerFactory,
java.util.concurrent.ExecutorService pool,
int primaryOperationTimeout)
throws java.io.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 timeoutjava.io.IOException - If the remote call failspublic Result next() throws java.io.IOException
ResultScannernext in interface ResultScannernext in class ClientScannerjava.io.IOException - eprotected void loadCache()
throws java.io.IOException
ClientScannerResults in the cache.loadCache in class ClientScannerjava.io.IOExceptionprotected void initializeScannerInConstruction()
throws java.io.IOException
initializeScannerInConstruction in class ClientScannerjava.io.IOExceptionpublic void close()
ResultScannerclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface ResultScannerclose in class ClientScannerprotected void setScannerCallableFactory(ClientSmallReversedScanner.SmallReversedScannerCallableFactory callableFactory)