@InterfaceAudience.Public @InterfaceStability.Evolving public class ClientSmallReversedScanner extends ReversedClientScanner
ReversedClientScannercache, caching, callable, caller, closed, currentRegion, lastNext, lastResult, maxScannerResultSize, rpcControllerFactory, scan, scanMetricsPublished, scannerTimeoutscanMetrics| Constructor and Description |
|---|
ClientSmallReversedScanner(org.apache.hadoop.conf.Configuration conf,
Scan scan,
TableName tableName,
HConnection connection)
Create a new ReversibleClientScanner for the specified table Note that the
passed
Scan's start row maybe changed. |
| 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 |
setRpcControllerFactory(RpcControllerFactory rpcControllerFactory) |
protected void |
setRpcRetryingCaller(RpcRetryingCaller<Result[]> caller) |
protected void |
setScannerCallableFactory(ClientSmallScanner.SmallScannerCallableFactory callableFactory) |
checkScanStopRow, createClosestRowBefore, getScannerCallable, nextScannergetConnection, getScan, getScannerCallable, getTable, getTableName, getTimestamp, writeScanMetricsgetScanMetrics, initScanMetrics, iterator, nextpublic ClientSmallReversedScanner(org.apache.hadoop.conf.Configuration conf,
Scan scan,
TableName tableName,
HConnection connection)
throws IOException
Scan's start row maybe changed.conf - The Configuration to use.scan - Scan to use in this scannertableName - The table that we wish to scanconnection - Connection identifying the clusterIOExceptionpublic Result next() throws IOException
ResultScannernext in interface ResultScannernext in class ClientScannerIOException - eprotected void loadCache()
throws IOException
ClientScannerResults in the cache.loadCache in class ClientScannerIOExceptionprotected void initializeScannerInConstruction()
throws IOException
initializeScannerInConstruction in class ClientScannerIOExceptionpublic void close()
ResultScannerclose in interface Closeableclose in interface AutoCloseableclose in interface ResultScannerclose in class ClientScannerprotected void setScannerCallableFactory(ClientSmallScanner.SmallScannerCallableFactory callableFactory)
protected void setRpcRetryingCaller(RpcRetryingCaller<Result[]> caller)
protected void setRpcControllerFactory(RpcControllerFactory rpcControllerFactory)
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.