Package org.apache.hadoop.hbase.client
Class ClientSideRegionScanner
java.lang.Object
org.apache.hadoop.hbase.client.AbstractClientScanner
org.apache.hadoop.hbase.client.ClientSideRegionScanner
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<Result>,ResultScanner
A client scanner for a region opened for read-only on the client side. Assumes region data is not
changing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BlockCache(package private) booleanprivate static final org.slf4j.Loggerprivate MobFileCacheprivate HRegion(package private) RegionScannerFields inherited from class org.apache.hadoop.hbase.client.AbstractClientScanner
scanMetrics -
Constructor Summary
ConstructorsConstructorDescriptionClientSideRegionScanner(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path rootDir, TableDescriptor htd, RegionInfo hri, Scan scan, ScanMetrics scanMetrics) -
Method Summary
Methods inherited from class org.apache.hadoop.hbase.client.AbstractClientScanner
getScanMetrics, initScanMetricsMethods 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
-
region
-
mobFileCache
-
blockCache
-
scanner
-
values
-
hasMore
boolean hasMore
-
-
Constructor Details
-
ClientSideRegionScanner
public ClientSideRegionScanner(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path rootDir, TableDescriptor htd, RegionInfo hri, Scan scan, ScanMetrics scanMetrics) throws IOException - Throws:
IOException
-
-
Method Details
-
next
Description copied from interface:ResultScannerGrab the next row's worth of values. The scanner will return a Result.- 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 -
getRegion
-
renewLease
Description copied from interface:ResultScannerAllow the client to renew the scanner's lease on the server.- Returns:
- true if the lease was successfully renewed, false otherwise.
-