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, wait
iterator, next
forEach, spliterator
protected org.apache.hadoop.hbase.thrift2.generated.TScan scan
protected Result lastResult
public Scanner(Scan scan) throws IOException
IOException
public Result next() throws IOException
ResultScanner
next
in interface ResultScanner
IOException
- epublic 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.private void setupNextScanner()
protected byte[] createClosestRowAfter(byte[] row)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.