@InterfaceAudience.Public 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() |
default Iterator<Result> |
iterator() |
Result |
next()
Grab the next row's worth of values.
|
default Result[] |
next(int nbRows)
Get nbRows rows.
|
boolean |
renewLease()
Allow the client to renew the scanner's lease on the server.
|
forEach, spliterator
Result next() throws IOException
IOException
- edefault Result[] next(int nbRows) throws IOException
Scan.setCaching(int)
setting (or hbase.client.scanner.caching in hbase-site.xml).nbRows
- number of rows to returnIOException
void close()
close
in interface AutoCloseable
close
in interface Closeable
boolean renewLease()
ScanMetrics getScanMetrics()
null
if we do not enable metrics.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.