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
Modifier and TypeFieldDescriptionprivate BlockCache
(package private) boolean
private static final org.slf4j.Logger
private MobFileCache
private HRegion
(package private) RegionScanner
Fields inherited from class org.apache.hadoop.hbase.client.AbstractClientScanner
scanMetrics
-
Constructor Summary
ConstructorDescriptionClientSideRegionScanner
(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, initScanMetrics
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
-
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:ResultScanner
Grab 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:ResultScanner
Closes the scanner and releases any resources it has allocated -
getRegion
-
renewLease
Description copied from interface:ResultScanner
Allow the client to renew the scanner's lease on the server.- Returns:
- true if the lease was successfully renewed, false otherwise.
-