@InterfaceAudience.Public @InterfaceStability.Stable public interface ResultScanner extends Closeable, Iterable<Result>
Table
to obtain instances.Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the scanner and releases any resources it has allocated
|
ScanMetrics |
getScanMetrics() |
Result |
next()
Grab the next row's worth of values.
|
Result[] |
next(int nbRows) |
boolean |
renewLease()
Allow the client to renew the scanner's lease on the server.
|
Result next() throws IOException
IOException
- eResult[] next(int nbRows) throws IOException
nbRows
- number of rows to returnIOException
- evoid close()
close
in interface AutoCloseable
close
in interface Closeable
boolean renewLease()
ScanMetrics getScanMetrics()
null
if we do not enable metrics.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.