@InterfaceAudience.Private class RegionScannerAsResultScanner extends Object implements ResultScanner
RegionScanner as a ResultScanner.| Modifier and Type | Field and Description |
|---|---|
private List<Cell> |
cells |
private static org.slf4j.Logger |
LOG |
private boolean |
moreRows |
private RegionScanner |
scanner |
| Constructor and Description |
|---|
RegionScannerAsResultScanner(RegionScanner scanner) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the scanner and releases any resources it has allocated
|
ScanMetrics |
getScanMetrics()
Returns the scan metrics, or
null if we do not enable metrics. |
Result |
next()
Grab the next row's worth of values.
|
boolean |
renewLease()
Allow the client to renew the scanner's lease on the server.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waititerator, nextforEach, spliteratorprivate static final org.slf4j.Logger LOG
private final RegionScanner scanner
private boolean moreRows
RegionScannerAsResultScanner(RegionScanner scanner)
public boolean renewLease()
ResultScannerrenewLease in interface ResultScannerpublic Result next() throws IOException
ResultScannernext in interface ResultScannerIOException - epublic ScanMetrics getScanMetrics()
ResultScannernull if we do not enable metrics.getScanMetrics in interface ResultScannerpublic void close()
ResultScannerclose in interface Closeableclose in interface AutoCloseableclose in interface ResultScannerCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.