@InterfaceAudience.Private public class ClientSideRegionScanner extends AbstractClientScanner
Modifier and Type | Field and Description |
---|---|
private BlockCache |
blockCache |
(package private) boolean |
hasMore |
private static org.slf4j.Logger |
LOG |
private MobFileCache |
mobFileCache |
private HRegion |
region |
(package private) RegionScanner |
scanner |
(package private) List<Cell> |
values |
scanMetrics
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the scanner and releases any resources it has allocated
|
(package private) HRegion |
getRegion() |
Result |
next()
Grab the next row's worth of values.
|
boolean |
renewLease()
Allow the client to renew the scanner's lease on the server.
|
getScanMetrics, initScanMetrics
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
iterator, next
forEach, spliterator
private static final org.slf4j.Logger LOG
private MobFileCache mobFileCache
private BlockCache blockCache
RegionScanner scanner
boolean hasMore
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
IOException
public Result next() throws IOException
ResultScanner
IOException
- epublic void close()
ResultScanner
public boolean renewLease()
ResultScanner
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.