Package org.apache.hadoop.hbase.client
Class AbstractClientScanner
java.lang.Object
org.apache.hadoop.hbase.client.AbstractClientScanner
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<Result>
,ResultScanner
- Direct Known Subclasses:
ClientSideRegionScanner
,TableSnapshotScanner
Helper class for custom client scanners.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionUsed internally accumulating metrics on scan.protected void
initScanMetrics
(Scan scan) Check and initialize if application wants to collect scan metricsMethods 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
close, iterator, next, next, renewLease
-
Field Details
-
scanMetrics
-
-
Constructor Details
-
AbstractClientScanner
public AbstractClientScanner()
-
-
Method Details
-
initScanMetrics
Check and initialize if application wants to collect scan metrics -
getScanMetrics
Used internally accumulating metrics on scan. To enable collection of metrics on a Scanner, callScan.setScanMetricsEnabled(boolean)
.- Specified by:
getScanMetrics
in interfaceResultScanner
- Returns:
- Returns the running
ScanMetrics
instance or null if scan metrics not enabled.
-