Package org.apache.hadoop.hbase.client
Interface ScanResultConsumerBase
- All Known Subinterfaces:
AdvancedScanResultConsumer
,ScanResultConsumer
- All Known Implementing Classes:
AsyncTableResultScanner
,ClientMetaTableAccessor.MetaTableScanResultConsumer
The base interface for scan result consumer.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Indicate that the scan operation is completed normally.void
Indicate that we hit an unrecoverable error and the scan operation is terminated.default void
onScanMetricsCreated
(ScanMetrics scanMetrics) Ifscan.isScanMetricsEnabled()
returns true, then this method will be called prior to all other methods in this interface to give you theScanMetrics
instance for this scan operation.
-
Method Details
-
onError
Indicate that we hit an unrecoverable error and the scan operation is terminated.We will not call
onComplete()
after callingonError(Throwable)
. -
onComplete
void onComplete()Indicate that the scan operation is completed normally. -
onScanMetricsCreated
Ifscan.isScanMetricsEnabled()
returns true, then this method will be called prior to all other methods in this interface to give you theScanMetrics
instance for this scan operation. TheScanMetrics
instance will be updated on-the-fly during the scan, you can store it somewhere to get the metrics at any time if you want.
-