Class RegionScannerAsResultScanner
java.lang.Object
org.apache.hadoop.hbase.master.region.RegionScannerAsResultScanner
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<Result>,ResultScanner
Wrap a
RegionScanner as a ResultScanner.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods 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
-
LOG
-
scanner
-
moreRows
-
cells
-
-
Constructor Details
-
RegionScannerAsResultScanner
-
-
Method Details
-
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.
-
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
-
getScanMetrics
Description copied from interface:ResultScannerReturns the scan metrics, ornullif we do not enable metrics.- Specified by:
getScanMetricsin interfaceResultScanner
-
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
-