@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 
 | 
org.apache.hadoop.hbase.client.metrics.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, spliteratorResult 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 returnIOExceptionvoid close()
close in interface AutoCloseableclose in interface Closeableboolean renewLease()
org.apache.hadoop.hbase.client.metrics.ScanMetrics getScanMetrics()
null if we do not enable metrics.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.