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, wait
forEach, spliterator
public Scanner(Scan scan) throws IOException
IOException
public Result[] next(int nbRows) throws IOException
ResultScanner
Scan.setCaching(int)
setting (or hbase.client.scanner.caching in hbase-site.xml).next
in interface ResultScanner
nbRows
- number of rows to returnIOException
public Result next() throws IOException
ResultScanner
next
in interface ResultScanner
IOException
- epublic Iterator<Result> iterator()
iterator
in interface Iterable<Result>
iterator
in interface ResultScanner
public void close()
ResultScanner
close
in interface Closeable
close
in interface AutoCloseable
close
in interface ResultScanner
public boolean renewLease()
ResultScanner
renewLease
in interface ResultScanner
public ScanMetrics getScanMetrics()
getScanMetrics
in interface ResultScanner
null
if we do not enable metrics.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.