private class ThriftTable.Scanner extends Object implements ResultScanner
| Modifier and Type | Field and Description |
|---|---|
protected Queue<Result> |
cache |
protected Result |
lastResult |
protected org.apache.hadoop.hbase.thrift2.generated.TScan |
scan |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the scanner and releases any resources it has allocated
|
protected byte[] |
createClosestRowAfter(byte[] row)
Create the closest row after the specified row
|
ScanMetrics |
getScanMetrics() |
Result |
next()
Grab the next row's worth of values.
|
boolean |
renewLease()
Allow the client to renew the scanner's lease on the server.
|
private void |
setupNextScanner() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waititerator, nextforEach, spliteratorprotected org.apache.hadoop.hbase.thrift2.generated.TScan scan
protected Result lastResult
public Scanner(Scan scan) throws IOException
IOExceptionpublic Result next() throws IOException
ResultScannernext in interface ResultScannerIOException - epublic 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.private void setupNextScanner()
protected byte[] createClosestRowAfter(byte[] row)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.