Class ThriftTable.Scanner
java.lang.Object
org.apache.hadoop.hbase.thrift2.client.ThriftTable.Scanner
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<Result>,ResultScanner
- Enclosing class:
- ThriftTable
A scanner to perform scan from thrift server getScannerResults is used in this scanner
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the scanner and releases any resources it has allocatedprotected byte[]createClosestRowAfter(byte[] row) Create the closest row after the specified rowReturns the scan metrics, ornullif we do not enable metrics.next()Grab the next row's worth of values.booleanAllow the client to renew the scanner's lease on the server.private voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.apache.hadoop.hbase.client.ResultScanner
iterator, next
-
Field Details
-
scan
-
lastResult
-
cache
-
-
Constructor Details
-
Scanner
- Throws:
IOException
-
-
Method Details
-
next
Description copied from interface:ResultScannerGrab the next row's worth of values. The scanner will return a Result.- Specified by:
nextin interfaceResultScanner- Returns:
- Result object if there is another row, null if the scanner is exhausted.
- Throws:
IOException- e
-
close
Description copied from interface:ResultScannerCloses the scanner and releases any resources it has allocated- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceResultScanner
-
renewLease
Description copied from interface:ResultScannerAllow the client to renew the scanner's lease on the server.- Specified by:
renewLeasein interfaceResultScanner- Returns:
- true if the lease was successfully renewed, false otherwise.
-
getScanMetrics
Description copied from interface:ResultScannerReturns the scan metrics, ornullif we do not enable metrics.- Specified by:
getScanMetricsin interfaceResultScanner
-
setupNextScanner
-
createClosestRowAfter
Create the closest row after the specified row
-