@InterfaceAudience.Public @InterfaceStability.Evolving public class AsyncReversedClientScanner extends AsyncClientScanner
caching, callable, caller, closed, currentRegion, lastNext, lastResult, maxScannerResultSize, scan, scanMetrics, scanMetricsPublished, scannerTimeout| Constructor and Description |
|---|
AsyncReversedClientScanner(AsyncRpcClient client,
org.apache.hadoop.hbase.client.Scan scan,
org.apache.hadoop.hbase.TableName tableName)
Create a new ReversibleClientScanner for the specified table Note that the
passed
Scan's start row maybe changed. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkScanStopRow(byte[] startKey) |
protected byte[] |
createClosestRowBefore(byte[] row)
Create the closest row before the specified row
|
protected AsyncScannerCallable |
getScannerCallable(byte[] localStartKey,
int nbRows,
byte[] locateStartRow)
Get scanner callable
|
protected void |
nextScanner(int nbRows,
boolean done,
ResponseHandler<java.lang.Boolean> handler)
Gets a scanner for the next region.
|
close, getScan, getScanMetrics, getScannerCallable, getTable, getTimestamp, initScanMetrics, isScanDone, nextBatch, setScanDone, writeScanMetricspublic AsyncReversedClientScanner(AsyncRpcClient client, org.apache.hadoop.hbase.client.Scan scan, org.apache.hadoop.hbase.TableName tableName)
Scan's start row maybe changed.client - The AsyncRpcClient to use.scan - Scan to use in this scannertableName - The table that we wish to scanprotected void nextScanner(int nbRows,
boolean done,
ResponseHandler<java.lang.Boolean> handler)
AsyncClientScannercurrentRegion != null and
done is true.nextScanner in class AsyncClientScannernbRows - number of rows to scandone - Server-side says we're done scanning.handler - for the next scannerprotected AsyncScannerCallable getScannerCallable(byte[] localStartKey, int nbRows, byte[] locateStartRow)
localStartKey - start key to startnbRows - rows to scanlocateStartRow - start rowprotected boolean checkScanStopRow(byte[] startKey)
checkScanStopRow in class AsyncClientScannerstartKey - to checkprotected byte[] createClosestRowBefore(byte[] row)
row - to create row before