@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, wait
iterator, next
forEach, spliterator
private static final org.slf4j.Logger LOG
private final RegionScanner scanner
private boolean moreRows
RegionScannerAsResultScanner(RegionScanner scanner)
public boolean renewLease()
ResultScanner
renewLease
in interface ResultScanner
public Result next() throws IOException
ResultScanner
next
in interface ResultScanner
IOException
- epublic ScanMetrics getScanMetrics()
ResultScanner
null
if we do not enable metrics.getScanMetrics
in interface ResultScanner
public void close()
ResultScanner
close
in interface Closeable
close
in interface AutoCloseable
close
in interface ResultScanner
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.