class RemoteHTable.Scanner extends Object implements ResultScanner
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
RemoteHTable.Scanner.Iter |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the scanner and releases any resources it has allocated
|
ScanMetrics |
getScanMetrics() |
Iterator<Result> |
iterator() |
Result |
next()
Grab the next row's worth of values.
|
Result[] |
next(int nbRows)
Get nbRows rows.
|
boolean |
renewLease()
Allow the client to renew the scanner's lease on the server.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic Scanner(Scan scan) throws IOException
IOExceptionpublic Result[] next(int nbRows) throws IOException
ResultScannerScan.setCaching(int)
setting (or hbase.client.scanner.caching in hbase-site.xml).next in interface ResultScannernbRows - number of rows to returnIOExceptionpublic Result next() throws IOException
ResultScannernext in interface ResultScannerIOException - epublic Iterator<Result> iterator()
iterator in interface Iterable<Result>iterator in interface ResultScannerpublic void close()
ResultScannerclose in interface Closeableclose in interface AutoCloseableclose in interface ResultScannerpublic boolean renewLease()
ResultScannerrenewLease in interface ResultScannerpublic ScanMetrics getScanMetrics()
getScanMetrics in interface ResultScannernull if we do not enable metrics.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.