@InterfaceAudience.Private public class ClientSmallScanner extends ClientScanner
ClientScanner
Modifier and Type | Class and Description |
---|---|
protected static class |
ClientSmallScanner.SmallScannerCallableFactory |
cache, caching, callable, caller, closed, conf, currentRegion, lastNext, lastResult, maxScannerResultSize, partialResults, partialResultsRow, pool, primaryOperationTimeout, rpcControllerFactory, scan, scanMetricsPublished, scannerTimeout
scanMetrics
Constructor and Description |
---|
ClientSmallScanner(Configuration conf,
Scan scan,
TableName tableName,
ClusterConnection connection,
RpcRetryingCallerFactory rpcFactory,
RpcControllerFactory controllerFactory,
ExecutorService pool,
int primaryOperationTimeout)
Create a new ShortClientScanner 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
Result s in the cache. |
Result |
next()
Grab the next row's worth of values.
|
protected void |
setScannerCallableFactory(ClientSmallScanner.SmallScannerCallableFactory callableFactory) |
checkScanStopRow, createClosestRowBefore, getCacheSize, getCaching, getConf, getConnection, getMaxResultSize, getPool, getPrimaryOperationTimeout, getResultsToAddToCache, getRetries, getScan, getScannerCallable, getScannerTimeout, getTable, getTableName, getTimestamp, nextScanner, renewLease, writeScanMetrics
getScanMetrics, initScanMetrics, iterator, next
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ClientSmallScanner(Configuration conf, Scan scan, 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 RpcRetryingCaller
controllerFactory
- Factory used to access RPC payloadspool
- Threadpool for RPC threadsprimaryOperationTimeout
- Call timeoutIOException
- If the remote call failsprotected void initializeScannerInConstruction() throws IOException
initializeScannerInConstruction
in class ClientScanner
IOException
public Result next() throws IOException
ResultScanner
next
in interface ResultScanner
next
in class ClientScanner
IOException
- eprotected void loadCache() throws IOException
ClientScanner
Result
s in the cache.loadCache
in class ClientScanner
IOException
public void close()
ResultScanner
close
in interface Closeable
close
in interface AutoCloseable
close
in interface ResultScanner
close
in class ClientScanner
protected void setScannerCallableFactory(ClientSmallScanner.SmallScannerCallableFactory callableFactory)