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
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods 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:ResultScanner
Allow the client to renew the scanner's lease on the server.- Specified by:
renewLease
in interfaceResultScanner
- Returns:
- true if the lease was successfully renewed, false otherwise.
-
next
Description copied from interface:ResultScanner
Grab the next row's worth of values. The scanner will return a Result.- Specified by:
next
in interfaceResultScanner
- Returns:
- Result object if there is another row, null if the scanner is exhausted.
- Throws:
IOException
- e
-
getScanMetrics
Description copied from interface:ResultScanner
Returns the scan metrics, ornull
if we do not enable metrics.- Specified by:
getScanMetrics
in interfaceResultScanner
-
close
Description copied from interface:ResultScanner
Closes the scanner and releases any resources it has allocated- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceResultScanner
-